-
Notifications
You must be signed in to change notification settings - Fork 90
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 a helper script for releasing trustee #373
Add a helper script for releasing trustee #373
Conversation
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.
Cool PR! Thanks @portersrc I am ok with the image push parts.
cc @surajssd
a8c2f94
to
49912e1
Compare
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.
Looks good. Just one comment.
hack/release-helper.sh
Outdated
echo " -k A github token with permissions on trustee to write packages" | ||
echo " and open PRs." | ||
echo " -c This is the tag that's been tested and that you're happy with." | ||
echo " You want to release from this tag. Example: latest" |
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.
Does it have to be a tag or could it be a commit sha?
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.
Oh 🤔 good point. Ultimately the candidate-release-tag
is used like so:
docker pull ${ghcr_repo}/${staged_pkg_name}:${candidate_release_tag}
E.g. for kbs:
docker pull ghcr.io/confidential-containers/staged-images/kbs:dc01f454264fb4350e5f69eba05683a9a1882c41
So it must be a tag for a GHCR package, but because we use commit shas for tagging our packages -- well -- a commit sha can be used. Let me update to make it clearer.
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.
Ok, adopted your language suggestion here b/c it's better, I think. Thanks!
Signed-off-by: Chris Porter <[email protected]>
49912e1
to
2a414e3
Compare
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. I guess we'll see how it works next release.
This is a bash script to help trustee maintainers perform releases. As the release guide changes, this script can/should change along with it.
This work follows from discussions for trustee's release process, e.g. see here. It is also similar in spirit to the one in peer pods here.
Example usage: