Skip to content

Commit

Permalink
try computing the artifact identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Jun 14, 2024
1 parent 30b074d commit 79d43f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
- name: Set artifact identifier
run: |
platform=$(${{ matrix.platform }} | tr / -)
echo "artifact_identifier=$platform" >> "$GITHUB_ENV"
- name: Export digest
run: |
mkdir -p /tmp/digests
Expand All @@ -50,7 +54,7 @@ jobs:
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digest-${{ matrix.platform }}
name: digest-$artifact_identifier
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down

0 comments on commit 79d43f4

Please sign in to comment.