Comment PR test-build rebase command on each PR #8
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
monolith-os/monolith!8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/pr-rebase-hint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
🧪 Test this PR on a real install
Each successful build of this PR publishes a signed test image to
ghcr.io/mondrethos/monolith:pr-8-44. From an existing monolith install (which already has the signing policy), rebase onto it:The tag is rebuilt on every new commit here, so
rpm-ostree upgradepulls the latest build. When you're done testing, return to the released image:The test tag stops updating once this PR is merged or closed.