ci
FreeGitHub Actions, Renovate, the two-branch release model, signing, and promotion. Use when changing workflows, dependency policy, or releasing.
The English summary is being prepared. Showing the original description.
Bootstrap a new image from this template: rename the project, enable Actions and Renovate, protect the branch, and reach a first green build. Use when forking the template or when setup has stalled.
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
Take a fresh fork from "Use this template" to a green build on main.
Every step has two routes: a gh command and a by-hand walkthrough through the
GitHub website (or git). They do the same thing, so use whichever suits you —
the by-hand route is written for someone who has never opened these settings
before. Substitute your own {owner}/{repo} throughout.
gh route, run gh auth login and authenticate as that admin.See the Quick start in README.md. Three identity
sites, and just test-contract fails when they disagree.
Without this no workflow runs at all, including the first build.
gh — gh api -X PUT repos/{owner}/{repo}/actions/permissions -F enabled=true -f allowed_actions=allRenovate merges low-risk updates on its own, and it cannot without this.
gh — gh api -X PATCH repos/{owner}/{repo} -F allow_auto_merge=trueTwo settings on one screen. The first lets workflows write — push images, open pull requests. The second is what lets the promotion workflow approve the check runs GitHub holds for its own pull request.
gh — gh api -X PUT repos/{owner}/{repo}/actions/permissions/workflow -f default_workflow_permissions=write -f can_approve_pull_request_reviews=trueThe one step with no shortcut. Renovate uses this token to push branches and open pull requests, so it needs to act as you.
Skip this step if you do not want Renovate. Without the secret the workflow logs a skip and the run stays green; nothing else in the image depends on it.
On any GitHub page, click your profile picture in the top right, then Settings.
In the left sidebar, click Developer settings.
Under Personal access tokens, click Tokens (classic).
Click Generate new token, then Generate new token (classic).
Give it a Note, for example renovate-your-repo.
Set an Expiration. The default is 30 days. When it lapses, Renovate stops opening pull requests until you replace the secret, so pick a date you will notice.
Under Select scopes, tick:
repo — read and write the repositoryworkflow — update the files under .github/workflows/Click Generate token.
Copy the token now. GitHub shows it once. If you lose it, generate another and replace the secret.
A classic token carries every permission you have, on every repository you can reach. If you would rather not, create a fine-grained token instead, scoped to this repository, with Contents: Read and write and Workflows: Write.
gh — gh secret set RENOVATE_TOKEN --repo {owner}/{repo}, then paste the
token when prompted.RENOVATE_TOKEN.stablePromotion opens a pull request into stable, so the branch has to exist before
the first promotion can run. Create it from main.
git — from a clone: git push origin main:stablegh — gh api -X POST repos/{owner}/{repo}/git/refs -f ref=refs/heads/stable -f sha="$(gh api repos/{owner}/{repo}/git/ref/heads/main --jq .object.sha)"stable and set the source to main.Never commit to stable directly. It only ever receives the promotion.
mainRequire the validate check, so nothing lands without passing shellcheck and
hadolint.
gh:
gh api -X PUT repos/{owner}/{repo}/branches/main/protection --input - <<'JSON'
{
"required_status_checks": {"strict": false, "contexts": ["validate"]},
"enforce_admins": false,
"required_pull_request_reviews": null,
"restrictions": null
}
JSON
By hand:
main.validate and select the validate check. It
must be exactly validate. A check that has never run does not appear in
the list — push something first if it is missing.main takes no direct pushes, but the setting is what
enforces it.stableThe same check, and zero required approvals so promotion merges the moment checks pass.
gh — the same call against stable, with:
"required_pull_request_reviews": {"required_approving_review_count": 0}
By hand:
stable.validate.stable to squash mergesPromotion is a squash PR, so the branch should accept nothing else.
gh:
gh api -X POST repos/{owner}/{repo}/rulesets --input - <<'JSON'
{
"name": "stable — squash-only promotion",
"target": "branch",
"enforcement": "active",
"conditions": {"ref_name": {"include": ["refs/heads/stable"], "exclude": []}},
"rules": [{"type": "pull_request", "parameters": {
"allowed_merge_methods": ["squash"],
"required_approving_review_count": 0,
"dismiss_stale_reviews_on_push": false,
"require_code_owner_review": false,
"require_last_push_approval": false,
"required_review_thread_resolution": false
}}]
}
JSON
By hand:
stable — squash-only promotion.stable.The release gate applies release/ready and release/blocked, and the shared
label workflow uses the lifecycle set. When a label is missing, the step that
applies it fails, and the failure is easy to miss.
gh — one call per label:
gh label create <name> --repo {owner}/{repo} --color <hex> --force
(--force updates a label that already exists, so the block is safe to
re-run.)gh route is worth
it here even if you did everything else by hand.Required:
| Label | Colour |
|---|---|
release/ready | 0e8a16 |
release/blocked | b60205 |
1-triage | FBCA04 |
2-discussing | D876E3 |
3-human-queue | 1D76DB |
3-clanker-queue | 0E8A16 |
4-review | 0052CC |
blocked | B60205 |
hold | 6E7781 |
Optional: area/ci, kind/bug, priority/p1 (all ededed), and GitHub's
defaults.
The issue templates in .github/ISSUE_TEMPLATE/ only appear when issues are on.
gh — gh api -X PATCH repos/{owner}/{repo} -F has_issues=trueRun every check and compare against the values in this skill:
gh api repos/{owner}/{repo} --jq '{auto_merge: .allow_auto_merge, issues: .has_issues}'
gh api repos/{owner}/{repo}/actions/permissions
gh api repos/{owner}/{repo}/actions/permissions/workflow
gh api repos/{owner}/{repo}/branches --jq '.[].name'
gh api repos/{owner}/{repo}/branches/main/protection --jq '.required_status_checks.contexts'
gh api repos/{owner}/{repo}/branches/stable/protection --jq '.required_status_checks.contexts'
gh api repos/{owner}/{repo}/rulesets --jq '.[].name'
gh secret list --repo {owner}/{repo}
Done when main and stable both exist and both require validate, the squash
ruleset is active, RENOVATE_TOKEN is set, and a push to main that changes
more than documentation produces a green Build and Push Image run and a
:stable-testing image. Documentation-only pushes are skipped by paths-ignore.
validate is not offered as a check — it has never run. Push something
that is not documentation-only and try again.workflow scope (step 5).stable does not exist (step 6).stable requires an approval, or the
check name is not exactly validate (steps 7–8).release/blocked — the labels in step 10 are
missing, or the candidate image is unsigned.No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
GitHub Actions, Renovate, the two-branch release model, signing, and promotion. Use when changing workflows, dependency policy, or releasing.
The English summary is being prepared. Showing the original description.
Decide where a package, app, or command belongs — dnf5 at build time, Homebrew, Flatpak, or ujust — and how each is validated. Use when adding or removing something from the image.
The English summary is being prepared. Showing the original description.
Architecture, repository layout, and file map for this template. Use when orienting to the repository, tracing how the image is assembled, or deciding which skill covers a task.
The English summary is being prepared. Showing the original description.
Symptom to cause to fix for build, CI, and runtime failures, plus the pre-commit checklist. Use when something is broken or before opening a pull request.
The English summary is being prepared. Showing the original description.