Repository navigation
workflows: build images on PRs without pushing them - #7
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6.
mainandv*tags. A PR builds its image but no longer replaces:main, and a manual run on another branch can't either.pathsfilter 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_dispatchadded, to rebuild an image on demand (e.g. for distro updates) now that unrelated commits no longer refresh it.actions/checkout@v7anddocker-build-push@v7(Node 24). Thepodman-loginstep is gone:docker-build-pushdoes 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.