Skip to content

Commit

Permalink
goreleaser
Browse files Browse the repository at this point in the history
Signed-off-by: Sahin <[email protected]>
  • Loading branch information
thesayyn committed Feb 5, 2022
1 parent 2cec49f commit 1353a56
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/.cache
/release
*.swp
dist
37 changes: 37 additions & 0 deletions goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
builds:
- main: ./cmd/umoci
flags:
- -tags
ldflags:
- -X {{.ModulePath}}.gitCommit={{.Commit}} -X {{.ModulePath}}.version={{.Version}}
- -s -w "{{if eq .Os "linux"}} -buildmode=pie {{end}}"
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm
- arm64
- 386
- s390x
goos:
- linux
- darwin
- freebsd

archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
386: i386
checksum:
name_template: "checksums.txt"

signs:
- cmd: gpg
artifacts: all
args: ["--armor", "--output", "${signature}", "--detach-sign", "${artifact}"]

# will remove once the PR is ready
release:
github:
owner: thesayyn
name: umoci

0 comments on commit 1353a56

Please sign in to comment.