WIP: Speed up container builds, releases and scans #222
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/container-ci"
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?
Queue an independent release for each changed image, and skip superseded releases before publishing. Dogear's Go and web stages share the source checkout and use persistent build caches. The scanner reuses the current Grype database and scans two images concurrently.
The release and scan workflows pin the shared workflow commit on the fix/container-ci branch of Exikle/forgejo-workflows. That commit must remain reachable when merging this change.
Local verification covered workflow lint, release selection, stale commits, scanner exit codes, and Dogear builds for amd64 and arm64. The live benchmark compares cache-only builds on the Forgejo builder.
[High risk] Releases pin forgejo-workflows commit 461666f on the fix/container-ci branch, and nothing shows that commit will stay reachable; high risk because the release pipeline is rebuilt.
Summary
Moves releases to one queued dispatch per changed app, and speeds up Dogear builds and scans
mainunderapps/**now go throughqueue-releases.yaml, which dispatchesrelease.yamlonce per app withsource-sha. Release runs are queued per app incontainer-release-<app>.container-release.yamlskips a release when a newermaincommit touchedapps/<app>orinclude/.dockerignore. It also refuses anysource-shathat is not on the default branch.Release <app>.What's good
source-shais a 40-character hex commit on the default branch before it checks it out.queue-releases.yamlgives each push its own concurrency group (enqueue-<sha>), so no push's enqueue is cancelled.sourcestage is now shared by the Go and web stages, so the repository is cloned once.Review context · 1 source · 0/4 commands
Reviews (1) · Last reviewed commit: "fix(ci): remove ignored Forgejo permissi..." · cliproxy/claude-opus-5-5
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.