-
Notifications
You must be signed in to change notification settings - Fork 8
Enable RPM and Deb package uploads to packages.smallstep.com #202
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
Conversation
maraino
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good in general, My only concern is that I think this requires goreleaser-pro, and to use goreleaser-cross with goreleaser-pro you need to use a goreleaser-cross-pro image, see https://github.com/goreleaser/goreleaser-cross/pkgs/container/goreleaser-cross-pro
.github/workflows/release.yml
Outdated
| env: | ||
| GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | ||
| NFPM_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }} | ||
| GPG_PRIVATE_KEY_FILE: ${{ env.GPG_PRIVATE_KEY_FILE }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make release is already reading the environment variables from .release-env, we should probably use only one way to set this.
Makefile
Outdated
| -e AWS_ACCESS_KEY_ID=$(AWS_ACCESS_KEY_ID) \ | ||
| -e AWS_S3_BUCKET=$(AWS_S3_BUCKET) \ | ||
| -e AWS_S3_REGION=$(AWS_S3_REGION) \ | ||
| -e AWS_SECRET_ACCESS_KEY=$(AWS_SECRET_ACCESS_KEY) \ | ||
| -e GITHUB_TOKEN=$(GITHUB_TOKEN) \ | ||
| -e GORELEASER_KEY=$(GORELEASER_KEY) \ | ||
| -e GPG_PRIVATE_KEY_FILE=$(GPG_PRIVATE_KEY_FILE) \ | ||
| -e IS_PRERELEASE=$(IS_PRERELEASE) \ | ||
| -e NFPM_PASSPHRASE=$(NFPM_PASSPHRASE) \ | ||
| -e RELEASE_DATE=$(RELEASE_DATE) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the previous comment, we can add this to .release-env. Or remove it.
maraino
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This adds support for signing RPM and Deb packages and uploading them to GCP Artifact Registry. It also changes the RPM and Deb file name format to use the ConventionalFileName macro in GoReleaser.