From bdca95d6ba41549dc8d89b3788aa1a51fa1d1829 Mon Sep 17 00:00:00 2001 From: Murph Murphy Date: Wed, 14 Jan 2026 17:13:53 -0700 Subject: [PATCH] Generate a more unique manifest name In all our current workflows this should be unique, but is still human understandable. --- .github/workflows/docker.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 83b422c..a0b2ee4 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -407,7 +407,13 @@ jobs: docker manifest push "$IMAGE" done fi - # used by other tools to identify if the expected tags were applied + - name: Generate manifest artifact name + id: artifact + run: | + # Sanitize image_name for use as artifact name (replace non-alphanumeric with dashes) + # This is to avoid artifact collisions when one workflow produces a few different images + NAME=$(echo "${{ inputs.image_name }}" | sed 's/[^a-zA-Z0-9._-]/-/g') + echo "name=manifest-${NAME}" >> "$GITHUB_OUTPUT" - name: Inspect and save manifest metadata id: manifest run: | @@ -416,10 +422,11 @@ jobs: docker buildx imagetools inspect --format '{{json .}}' "$CANONICAL" > /tmp/manifest-inspect/manifest.json echo "Manifest inspection saved to /tmp/manifest-inspect/manifest.json" cat /tmp/manifest-inspect/manifest.json + # used by other tools to identify if the expected tags were applied - name: Upload manifest metadata uses: actions/upload-artifact@v4 with: - name: manifest + name: ${{ steps.artifact.outputs.name }} path: /tmp/manifest-inspect/manifest.json retention-days: 30 # This triggers the Deploy workflow's `release: released`