feat(unit): build base images on pull requests without pushing them #67
No reviewers
Labels
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
cjournois/reusable-pipeline!67
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/improve-build-without-push"
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?
The base-image job pushed an image and exported
:buildcacheon every pull request, so a consumer like devops/image could not build on PRs without publishing PR images. Apushinput on docker-build-push, set to false on pull_request events, builds with--output type=cacheonlyand writes nothing to the registry. Step 1 of proposal 2026-10-10-1; step 2 adds PR triggers in devops/image once this ships as 5.1.0.imagejob (base images):push: ${{ github.event_name != 'pull_request' }}.publishjob unchanged: its[publish]PR-title opt-in stays a deliberate publish from a PR.With PUSH=false, docker-build-push.sh runs buildx with
--output type=cacheonlyand no--pushor--cache-to(bats); with PUSH unset the commands are byte-identical (bats, checked against the old script)unit.yml's image job passes
push: ${{ github.event_name != 'pull_request' }}to docker-build-pushReleased as 5.1.0 (after merge)
Verified:
just lint testpasses (shellcheck, actionlint, 441 bats). Unverified: a real buildx run of the cacheonly path with-ttags; the tests stub docker, so the first devops/image PR on 5.1.0 is the live check. The action is referenced@mainfrom unit.yml, so it ships on merge; its default keeps today's behaviour.