Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci/cd: ship tarballs with vendored deps #5403

Merged
merged 1 commit into from
Feb 26, 2023
Merged

ci/cd: ship tarballs with vendored deps #5403

merged 1 commit into from
Feb 26, 2023

Conversation

mohammed90
Copy link
Member

This adds 2 tarballs in the release:

  • caddy_{{ .Version }}_buildable-artifact.tar.gz: this contains a main.go, go.mod, and go.sum along with a vendor/ tree containing all the deps, including Caddy's own source tree as a dep. This allows the user to run go build against the exact files used to build our releases.
  • caddy_{{ .Version }}_src: this packages Caddy's git tree as-is along with the vendor/ directory of vendored deps.

To test, run:
TAG=master goreleaser release --skip-publish --snapshot --clean

Closes #4573

@mohammed90 mohammed90 added the CI/CD 🔩 Automated tests, releases label Feb 26, 2023
@francislavoie
Copy link
Member

Nice. Those get signed too, right? I think that's all still automated on top of that?

@francislavoie francislavoie added this to the v2.7.0 milestone Feb 26, 2023
@francislavoie francislavoie enabled auto-merge (squash) February 26, 2023 21:58
@mholt
Copy link
Member

mholt commented Feb 27, 2023

Cool, thank you for doing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD 🔩 Automated tests, releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider shipping release tarball with vendored dependencies
3 participants