You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: speed up and de-duplicate the release & preview pipelines
Performance (PR preview, the iterative-feedback path):
- Add a concurrency group with cancel-in-progress so pushing a PR again
cancels the superseded (slow) preview run instead of letting it churn.
- Build preview images amd64-only. arm64 under QEMU emulation was the
slowest part of the job, and preview images are for quick testing;
release/stable keep multi-arch.
- Enable GitHub Actions Docker layer cache (type=gha) on all image builds
so unchanged layers are reused across runs.
De-duplication (GitHub Actions has no YAML anchors, so use composite actions):
- New .github/actions/setup-docker-publish: the QEMU + Buildx + Docker Hub
login trio, shared by release.yml, pr-preview.yml, and docker-stable.yml.
These had drifted to three different pinned SHA sets; now there is one.
(Docker Hub creds are passed as inputs since composite actions can't read
secrets directly.)
- New .github/actions/setup-hatch: the pinned virtualenv/hatchling/hatch
install shared by release.yml and pr-preview.yml.
No behavior change to what gets published; only how the pipelines are
assembled and how fast/parallel they run.
Stacked on #217 (lelia/fix-dependabot-checks) to avoid a pr-preview.yml
conflict with that PR's Dependabot skip; rebase onto main once #217 lands.
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
0 commit comments