ci: build the Docker images for the release tag

bump-version.yml pushes the release tag with GITHUB_TOKEN. Events from
GITHUB_TOKEN do not start other workflows, so docker-build.yml never
ran for v0.3.0, and Docker Hub has no 0.3.0 or 0.3 image. bump-version
now starts docker-build.yml for the new tag with a workflow_dispatch
event, which GITHUB_TOKEN may trigger. docker/metadata-action takes the
version tags from the tag ref, also for workflow_dispatch.

Additional changes
Describe the tag and the Docker images in the release process docs

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 7785e09c59
commit 053e22e7fe
3 changed files with 20 additions and 1 deletions
+13 -1
View File
@@ -9,6 +9,7 @@ on:
permissions:
contents: write # Required for pushing commits and tags
pull-requests: write # Required to create a pull request
actions: write # Required to start the Docker image build for the release tag
concurrency:
group: bump-version-main
@@ -63,7 +64,18 @@ jobs:
echo "tagged=true" >> "$GITHUB_OUTPUT"
fi
# --- Step 6: Create PR to bump to dev version ---
# --- 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.
- name: Start Docker image build for the release tag
if: steps.tagging.outputs.tagged == 'true'
run: |
gh workflow run docker-build.yml --ref "$TAG"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: v${{ steps.calc.outputs.version }}
# --- Step 7: Create PR to bump to dev version ---
- name: Bump dev version and create PR
if: "!contains(steps.calc.outputs.version, 'dev')"
run: |
+3
View File
@@ -12,6 +12,9 @@ on:
pull_request:
branches:
- '**'
# bump-version.yml starts the build for the release tag it creates. A tag pushed with
# GITHUB_TOKEN does not trigger the push event above.
workflow_dispatch:
env:
DOCKERHUB_REPO: akkudoktor/eos