Comment PR test-build rebase command on each PR#8
Merged
Conversation
Adds a workflow that posts a one-time comment when a PR is opened with the signed rebase command for that PR's test image (pr-<number>-<image-version>). The image-version is read from the recipe so it survives Fedora bumps, and the tag is constant for the PR's lifetime so a single comment suffices.
🧪 Test this PR on a real installEach successful build of this PR publishes a signed test image to rpm-ostree rebase ostree-image-signed:docker://ghcr.io/mondrethos/monolith:pr-8-44
systemctl rebootThe tag is rebuilt on every new commit here, so rpm-ostree rebase ostree-image-signed:docker://ghcr.io/mondrethos/monolith:latestThe test tag stops updating once this PR is merged or closed. |
The comment posts when the PR opens, before the build has published the image. Phrase it so the reader waits for the green build check first, avoiding a manifest-not-found if the command is run too early.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
.github/workflows/pr-rebase-hint.yml— posts a comment when a PR is opened with the exact rebase command for that PR's signed test image:Details
SIGNING_SECRET, so their images are cosign-signed (verifiedpr-7-44againstcosign.pub). The comment usesostree-image-signed:, matching the README; anyone testing is already on monolith and has the policy installed.image-versionis read fromrecipes/recipe.yml(currently44) so the tag stays correct across Fedora bumps.pr-N-<version>tag is constant for the PR's lifetime, so it posts once onopened/reopenedinstead of on every push.permissions: {}; the job takes onlycontents: readandpull-requests: write.Scope
Targets the current same-repo PR flow. Fork PRs (read-only token, unsigned image) are intentionally out of scope until outside contributions start.
Self-demo
This PR should get the comment on itself once the workflow runs.