Skip to content

Enable RPM and Deb package uploads to packages.smallstep.com#202

Merged
jdoss merged 4 commits intomainfrom
jdoss/Packages
Mar 26, 2025
Merged

Enable RPM and Deb package uploads to packages.smallstep.com#202
jdoss merged 4 commits intomainfrom
jdoss/Packages

Conversation

@jdoss
Copy link
Copy Markdown
Contributor

@jdoss jdoss commented Dec 11, 2024

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.

@jdoss jdoss requested a review from dopey December 11, 2024 21:31
@jdoss jdoss requested review from a team and maraino as code owners December 11, 2024 21:31
Copy link
Copy Markdown
Contributor

@maraino maraino left a 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

Comment thread scripts/package-repo-import.sh
Comment thread Makefile Outdated
Comment thread Makefile Outdated
Comment thread Makefile Outdated
Comment thread Makefile Outdated
dopey
dopey previously approved these changes Mar 19, 2025
@jdoss jdoss requested a review from maraino March 24, 2025 17:45
Comment thread .github/workflows/release.yml Outdated
Comment on lines +103 to +106
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
NFPM_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}
GPG_PRIVATE_KEY_FILE: ${{ env.GPG_PRIVATE_KEY_FILE }}
Copy link
Copy Markdown
Contributor

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.

Comment thread Makefile Outdated
Comment on lines +147 to +156
-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) \
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor

@maraino maraino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jdoss jdoss merged commit e5e70a2 into main Mar 26, 2025
30 checks passed
@jdoss jdoss deleted the jdoss/Packages branch March 26, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants