ci(release): create the Forgejo release for each tag #62
No reviewers
Labels
No labels
bug
docs
duplicate
enhancement
help wanted
invalid
nice-to-have
pre-1.0
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/lamplighter!62
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/60-forgejo-releases"
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?
What changed
A new release job, run after the images are pushed, creates (or updates on rerun) the tag's Forgejo release with the tag's git-cliff notes and a docker pull line, tested red-then-green against a fake API (C4) with precommit green (C5); it's on local branch ci/60-forgejo-releases, one signed commit, not pushed.
Red, then green
export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix test test/release/publish_release_test.exs169940c): exit 118642bd): exit 0Checks
export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix precommit && python3 -c "import yaml;[yaml.safe_load(open(f)) for f in ['.forgejo/workflows/release.yml','.forgejo/workflows/ci.yml']]", exit 0cd /home/peak/work/lamplighter-v1-2/lamplighter && export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix test test/release/publish_release_test.exs, exit 0Risks
Not run on a real tag push yet. It relies on Forgejo's automatic token (secrets.GITHUB_TOKEN) being allowed to write releases on tag pushes, and on the linux/amd64 runner having curl and jq (the merge job already uses jq). If the token can't write, the job fails with the API's error after the images are already out, and a release token secret would need swapping in.
Prover
Passed (Sonnet): Re-ran the release tests (4 pass) and ran the script with a stubbed curl serving the real v1.1.0 tag annotation; it strips the header, takes the create path, and pull line and -rc handling look right. Untested: a real tag push, whether Forgejo's automatic token can write releases, curl/jq on the runner, and the PATCH path on a real server.
Every command above was run by Fortysix's Basecamp itself, on the branch named.