ci: start the release image build again when the release job is rerun

A rerun of the Bump Version job finds the tag it pushed before, so
tagged is false and the image build was skipped: a failed dispatch
could not be retried. The build now starts whenever the release tag
points to the commit of the run. The release docs name the manual
fallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
Christin
2026-11-20 22:10:59 +01:00
committed by Bobby Noelte
co-authored by Claude Opus 5.5
parent 053e22e7fe
commit c07f7f41ed
2 changed files with 9 additions and 2 deletions
+7 -2
View File
@@ -63,12 +63,17 @@ jobs:
git push origin "$TAG"
echo "tagged=true" >> "$GITHUB_OUTPUT"
fi
# Also true on a rerun of this job, which finds the tag it pushed before.
if [ "$(git rev-parse "$TAG^{commit}")" = "$(git rev-parse HEAD)" ]; then
echo "release_commit=true" >> "$GITHUB_OUTPUT"
fi
# --- Step 6: Build the Docker images of the release ---
# The tag pushed with GITHUB_TOKEN does not trigger docker-build.yml; a workflow_dispatch
# event does. Runs before the dev version PR, so a failing PR step does not skip it.
# event does. Runs before the dev version PR, so a failing PR step does not skip it, and
# again when the job is rerun.
- name: Start Docker image build for the release tag
if: steps.tagging.outputs.tagged == 'true'
if: steps.tagging.outputs.release_commit == 'true'
run: |
gh workflow run docker-build.yml --ref "$TAG"
env: