diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 98a91d69..499f1d45 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -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: diff --git a/docs/develop/release.md b/docs/develop/release.md index 06bc6c2f..29dce3bf 100644 --- a/docs/develop/release.md +++ b/docs/develop/release.md @@ -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 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. +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