docker latest: pass the dispatch tag through env, not the script

Claude-Session: https://claude.ai/code/session_01A5zMqzaUg1Snur4Yg8xJGa
This commit is contained in:
Chris Lu
2026-09-03 10:25:02 -07:00
parent 0d3aebbcbe
commit 5c7a38e121
+4 -1
View File
@@ -551,8 +551,11 @@ jobs:
- name: Resolve the published digests
id: digests
env:
BASE_TAG: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.image_tag || 'latest' }}
SUFFIX: ${{ steps.config.outputs.tag_suffix }}
run: |
tag="${{ github.event_name == 'workflow_dispatch' && github.event.inputs.image_tag || 'latest' }}${{ steps.config.outputs.tag_suffix }}"
tag="${BASE_TAG}${SUFFIX}"
echo "images=ghcr.io/chrislusf/seaweedfs@$(crane digest "ghcr.io/chrislusf/seaweedfs:${tag}") chrislusf/seaweedfs@$(crane digest "chrislusf/seaweedfs:${tag}")" >> "$GITHUB_OUTPUT"
- name: Sign