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" git push origin "$TAG"
echo "tagged=true" >> "$GITHUB_OUTPUT" echo "tagged=true" >> "$GITHUB_OUTPUT"
fi 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 --- # --- Step 6: Build the Docker images of the release ---
# The tag pushed with GITHUB_TOKEN does not trigger docker-build.yml; a workflow_dispatch # 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 - name: Start Docker image build for the release tag
if: steps.tagging.outputs.tagged == 'true' if: steps.tagging.outputs.release_commit == 'true'
run: | run: |
gh workflow run docker-build.yml --ref "$TAG" gh workflow run docker-build.yml --ref "$TAG"
env: env:
+2
View File
@@ -138,6 +138,8 @@ See `.github/workflows/bump-version.yml` for details.
The workflow tags the release commit `vX.Y.Z` and starts `.github/workflows/docker-build.yml` for The workflow tags the release commit `vX.Y.Z` and starts `.github/workflows/docker-build.yml` for
the tag. That run pushes the Docker images with the tags `X.Y.Z` and `X.Y` to Docker Hub the tag. That run pushes the Docker images with the tags `X.Y.Z` and `X.Y` to Docker Hub
(`akkudoktor/eos`) and GHCR (`ghcr.io/akkudoktor-eos/eos`). Check that both tags exist after the run. (`akkudoktor/eos`) and GHCR (`ghcr.io/akkudoktor-eos/eos`). Check that both tags exist after the run.
If they are missing, rerun the `Bump Version` workflow run of the release commit, or start the build
for the tag by hand: `gh workflow run docker-build.yml --ref vX.Y.Z`.
### 5️⃣ CI: Open Pull Request for Development Version Marker ### 5️⃣ CI: Open Pull Request for Development Version Marker