Skip to content

Commit

Permalink
Merge pull request #200 from cblecker/darwin-arm64
Browse files Browse the repository at this point in the history
Enable darwin_arm64 builds
  • Loading branch information
openshift-merge-robot authored Mar 28, 2022
2 parents 3019037 + e589aaf commit f97ffe3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ builds:
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: linux
goarch: arm64
ldflags:
# the following line will inject the current git commit and git tag in the binary during the build process.
# .ShortCommit and .Version are template variables that will be set during the GoReleaser run
# The "-X" go flag injects the strings into the two global variables GitCommit and Version
# See also: https://pkg.go.dev/cmd/link
- -s
- -w
- -w
- -X github.com/openshift/osdctl/cmd.GitCommit={{.ShortCommit}}
- -X github.com/openshift/osdctl/cmd.Version={{.Version}}
- "-extldflags=-zrelro" # binary hardening: For further explanation look here: https://www.redhat.com/en/blog/hardening-elf-binaries-using-relocation-read-only-relro
Expand Down

0 comments on commit f97ffe3

Please sign in to comment.