Skip to content

Commit 79d43f4

Browse files
authored
try computing the artifact identifier
1 parent 30b074d commit 79d43f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build_image.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
platforms: ${{ matrix.platform }}
4343
labels: ${{ steps.meta.outputs.labels }}
4444
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
45+
- name: Set artifact identifier
46+
run: |
47+
platform=$(${{ matrix.platform }} | tr / -)
48+
echo "artifact_identifier=$platform" >> "$GITHUB_ENV"
4549
- name: Export digest
4650
run: |
4751
mkdir -p /tmp/digests
@@ -50,7 +54,7 @@ jobs:
5054
- name: Upload digest
5155
uses: actions/upload-artifact@v4
5256
with:
53-
name: digest-${{ matrix.platform }}
57+
name: digest-$artifact_identifier
5458
path: /tmp/digests/*
5559
if-no-files-found: error
5660
retention-days: 1

0 commit comments

Comments
 (0)