Skip to content

workflows: build images on PRs without pushing them - #7

Merged
jwinarske merged 1 commit into
mainfrom
jw/workflow-triggers
Nov 19, 2026
Merged

jwinarske merged 1 commit into
mainfrom
jw/workflow-triggers

Conversation

@jwinarske

Copy link
Copy Markdown
Contributor

Closes #6.

  • Push only from main and v* tags. A PR builds its image but no longer replaces :main, and a manual run on another branch can't either.
  • Each workflow has a paths filter for its own image directory and workflow file, so a Dockerfile change rebuilds that image only. Tag pushes skip path filters and still rebuild all of them.
  • workflow_dispatch added, to rebuild an image on demand (e.g. for distro updates) now that unrelated commits no longer refresh it.
  • actions/checkout@v7 and docker-build-push@v7 (Node 24). The podman-login step is gone: docker-build-push does its own registry login and nothing uses podman.

This PR touches all eight workflow files, so it builds all eight images (without pushing), and the merge will rebuild and push all eight once.

Pull requests ran the same build-and-push job as main, so a PR
replaced the published :main image before review. Push only from main
and v* tags; a PR now just builds.

Give each workflow a paths filter for its own image directory and
workflow file, so a change to one Dockerfile rebuilds only that image
instead of all eight. Tag pushes ignore paths filters and still
rebuild everything. Add workflow_dispatch to rebuild an image by hand,
e.g. to pick up distro updates.

Move to actions/checkout@v7 and docker-build-push@v7, which run on
Node 24. Drop the podman-login step: docker-build-push logs in to the
registry itself, and nothing in the job uses podman.

Signed-off-by: Joel Winarske <joel.winarske@linux.com>
@jwinarske
jwinarske merged commit 309f870 into main Nov 19, 2026
7 of 8 checks passed
@jwinarske
jwinarske deleted the jw/workflow-triggers branch November 19, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image workflows: don't push from PRs, and only rebuild what changed

1 participant