From c319b417c34136a223df5a218ef0b63518b0af47 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Mar 2026 04:32:15 +0000 Subject: [PATCH] Fix Docker workflow missing semver/latest tags when called from release.yml docker.yml uses github.event_name to decide between full release tags (semver, latest) vs CI-only tags (branch, sha). When release.yml calls it via `uses:`, the child sees event_name='workflow_call' which was hitting the non-release path. Now workflow_call is treated the same as workflow_dispatch so published releases get proper Docker tags. https://claude.ai/code/session_01Vx1EsNrNySgsc8Y67dGzCn --- .github/workflows/docker.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 074ec827..ce0da517 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -66,7 +66,7 @@ jobs: # https://github.com/docker/metadata-action id: docker_meta uses: docker/metadata-action@v5 - if: github.event_name == 'workflow_dispatch' + if: github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' with: images: archivebox/archivebox,ghcr.io/archivebox/archivebox tags: | @@ -80,12 +80,12 @@ jobs: type=sha # :latest type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'stable') }} - + - name: Collect Non-Release Docker tags # https://github.com/docker/metadata-action id: docker_meta_non_release uses: docker/metadata-action@v5 - if: github.event_name != 'workflow_dispatch' + if: github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' with: images: archivebox/archivebox,ghcr.io/archivebox/archivebox tags: | @@ -102,8 +102,8 @@ jobs: file: ./Dockerfile builder: ${{ steps.buildx.outputs.name }} push: ${{ github.event_name != 'pull_request' }} - tags: ${{ github.event_name == 'workflow_dispatch' ? steps.docker_meta.outputs.tags : steps.docker_meta_non_release.outputs.tags }} - labels: ${{ github.event_name == 'workflow_dispatch' ? steps.docker_meta.outputs.labels : steps.docker_meta_non_release.outputs.labels }} + tags: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && steps.docker_meta.outputs.tags || steps.docker_meta_non_release.outputs.tags }} + labels: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && steps.docker_meta.outputs.labels || steps.docker_meta_non_release.outputs.labels }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new platforms: linux/amd64,linux/arm64