ci(build-main): add manual workflow_dispatch trigger for main#525
Merged
Conversation
The Latest image workflow only fired on `v*` tags, so there was no way to
build and push the `:latest` image from the current `main` without cutting
a version tag. Add a `workflow_dispatch` trigger (alongside the existing
tag trigger) so `main` can be built and pushed to Docker Hub on demand from
the Actions tab.
Also drop the `Get Version` step: build-main hardcodes the
`picimpact:latest` tag and never referenced its `VERSION` output, so it was
dead — and under a manual (non-tag) run `${GITHUB_REF#refs/tags/}` would
resolve to a branch ref, which is misleading. Removing it keeps the manual
run clean. The versioned release workflow (`build-release.yaml`, `v*` tags)
is untouched.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
What
Adds a manual trigger to the Latest image workflow (
build-main.yaml) so the currentmaincan be built and pushed to Docker Hub on demand, without cutting av*tag.workflow_dispatch:alongside the existingpush: tags: ['v*']trigger. From the Actions tab you can now run it manually (defaults to themainbranch) → builds the multi-arch image and pushespicimpact:latest. The server then pulls:latest.Get Versionstep: build-main hardcodes thepicimpact:latesttag and never referenced itsVERSIONoutput, so it was dead code — and under a manual (non-tag) run${GITHUB_REF#refs/tags/}would resolve to a branch ref, which is misleading. Removing it keeps the manual run clean.Scope / not changed
:latest(the deployable tag this workflow already produces).build-release.yaml,v*tags →picimpact:<version>) is untouched.Verify
After merge: GitHub → Actions → "Latest Docker Multi-arch Image CI & CD" → Run workflow (branch
main) → confirms a freshpicimpact:latestis built and pushed.