smallstep / cli

🧰 A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc.
https://smallstep.com/cli
Apache License 2.0
3.67k stars 255 forks source link

Try out GoReleaser for release process #418

Open tashian opened 3 years ago

tashian commented 3 years ago

https://goreleaser.com/intro/

maraino commented 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

tashian commented 3 years ago

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:

Notes:

TODOs to replace current Makefile/GH Actions build process:

(What else?)

Version 2:

maraino commented 3 years ago

Is it possible to build with -trimpath?

tashian commented 3 years ago

@maraino yes— I've added this.