Open tashian opened 3 years ago
In the limitations, goreleaser mentions CGO, that is going to be important when we add CGO and non-CGO binaries, for supporting things like YubiKey and PKCS#11 modules in the cli. But it links to this project https://github.com/troian/golang-cross
I've written a basic .goreleaser.yml
that builds multiarch binaries, archives, and docker images (non-CGO) using our naming & dir structure conventions.
To try it:
carl/goreleaser
.goreleaser --snapshot --skip-publish --rm-dist
dist
folder.Notes:
v
prefix before the version number eg. step_linux_v0.15.4-rc.4-next_amd64.tar.gz
. This is a goreleaser bug, but it only does this for snapshot builds; for actual releases it will not include the v
prefix.Dockerfile
to stop building step
inside the container. This may break step-ca
's docker build processTODOs to replace current Makefile/GH Actions build process:
make archive
rule)-trimpath
(What else?)
Version 2:
Is it possible to build with -trimpath
?
@maraino yes— I've added this.
https://goreleaser.com/intro/