Repository navigation
Docker: rebuild dev and latest release images weekly - #2687
tmilnthorp wants to merge 1 commit into
Conversation
|
Thinking about this more, there's a trade-off you might want a say in before merging. As written, the weekly job rebuilds from unchanged source and picks up whatever Two other options:
My suggestion would be both: Dependabot PRs for |
|
I'd suggest closing this in favour of a PR-driven approach. #2686 now pins the base image by digest so Dependabot can open update PRs, and #2688 makes release tags publish their images. Base OS fixes then reach users through normal (patch) releases instead of tags being republished on a schedule. Every published image stays reviewed and CI-tested. Happy to close it if you agree. Sorry for the churn! |
As discussed on Discord: images are currently only built on
devpushes and tags, so a release image never gets base-OS security fixes after it ships. (Background: #2673.)This adds a weekly
schedule(Mondays 04:00 UTC) and aworkflow_dispatchtrigger tobuild-docker.yml. Each run rebuilds two images:dev, pushed as:dev.gh release view), checked out at its tag, with the wheel built from that tag usinguv build. It is pushed with the same tags a release build produces (X.Y.Z+latest).metadata-action now uses
context: git, so tags come from the checked-out ref. On the existing workflow_run path that ref is still the default branch, so the current behaviour stays the same: same condition, same downloaded wheel, same tags, same job name.Other cadences are a one-line change if you prefer one:
Release images only benefit once a release is built on the 3.23 base (the 4.5.13 tag's Dockerfile pins Alpine 3.21, which is end-of-life). The release-trigger issues I mentioned are fixed in a separate PR.
Checked with actionlint.