Skip to content

Commit

Permalink
Merge branch 'issue98' into issue96
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Oct 10, 2022
2 parents 414ae4a + db0220e commit b3bb841
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ builds:
binary: apigeecli
goos:
- linux
goarch:
- amd64
flags:
- -trimpath
ldflags:
- -s -w -a -extldflags "-static" -X main.Version={{.Tag}} -X main.Git={{.Commit}}
env:
- CGO_ENABLED=0
hooks:
post: upx "{{ .Path }}"
- id: apigeeclimac
main: ./main.go
binary: apigeecli
goos:
- darwin
goarch:
- amd64
Expand All @@ -45,6 +59,8 @@ builds:
binary: apigeecli
goos:
- windows
goarch:
- amd64
ignore:
- goos: windows
goarch: arm64
Expand All @@ -56,18 +72,19 @@ builds:
- CGO_ENABLED=0

archives:
- id: apigeecli
- id: apigeecli_1
format: zip
name_template: "{{ .ProjectName }}_{{.Tag}}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: Darwin
linux: Linux
darwin: Darwin
amd64: x86_64
windows: Windows
wrap_in_directory: true
builds:
- apigeeclinix
- apigeecliwin
- apigeeclimac

checksum:
name_template: 'checksums.txt'
Expand All @@ -93,4 +110,4 @@ universal_binaries:
-
replace: false
ids:
- apigeeclinix
- apigeeclimac

0 comments on commit b3bb841

Please sign in to comment.