-
Notifications
You must be signed in to change notification settings - Fork 257
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
Add support in for signing and publishing RPM and Deb packages to GCP Artifact Registry #1246
Conversation
--package "${PACKAGE}" \ | ||
--filter "VERSION:${VER}" \ | ||
--format json 2> /dev/null \ | ||
| jq -re '.[].name?' >/dev/null 2>&1 \ |
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.
might need to install jq
on the VM
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.
JQ comes preinstalled on the ubuntu action IIRC.
version: 2 | ||
project_name: step | ||
|
||
variables: | ||
packageName: step-cli | ||
packageRelease: 1 # Manually update release: in the nfpm section to match this value if you change this |
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.
What's the reason for not using "{{ .Var.packageRelease }}"
in the nfpm section?
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 will default to -1 and you only need to set that if we need to manually change the release and the nfpm section doesn't support variables.
… Artifact Registry.
Co-authored-by: Carl Tashian <[email protected]>
Co-authored-by: Carl Tashian <[email protected]>
ca2217e
to
54d3e3b
Compare
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.