Skip to content

Commit be3b65e

Browse files
author
Robert Schuh
committed
update to artifact v4
1 parent 59e7789 commit be3b65e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,15 @@ jobs:
5959
run: |
6060
mkdir -p /tmp/digests
6161
digest="${{ steps.build.outputs.digest }}"
62-
touch "/tmp/digests/${digest#sha256:}"
62+
touch "/tmp/digests/${digest#sha256:}"
63+
- name: Prepare artifact name
64+
run: |
65+
name=$(echo -n "${{ matrix.platform }}" | sed -e 's/[ \t:\/\\"<>|*?]/-/g' -e 's/--*/-/g')
66+
echo "ARTIFACT_NAME=$name" >> $GITHUB_ENV
6367
- name: Upload digest
6468
uses: actions/upload-artifact@v4
6569
with:
66-
name: digests-${{ matrix.platform }}
70+
name: digests-${{ env.ARTIFACT_NAME }}
6771
path: /tmp/digests/*
6872
if-no-files-found: error
6973
retention-days: 1
@@ -76,11 +80,15 @@ jobs:
7680
- name: REGISTRY_IMAGE
7781
run: |
7882
echo "REGISTRY_IMAGE=ghcr.io/${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
83+
- name: Prepare artifact name
84+
run: |
85+
name=$(echo -n "${{ matrix.platform }}" | sed -e 's/[ \t:\/\\"<>|*?]/-/g' -e 's/--*/-/g')
86+
echo "ARTIFACT_NAME=$name" >> $GITHUB_ENV
7987
- name: Download digests
8088
uses: actions/download-artifact@v4
8189
with:
8290
path: /tmp/digests
83-
pattern: digests-${{ matrix.platform }}
91+
pattern: digests-${{ env.ARTIFACT_NAME }}
8492
merge-multiple: 'true'
8593
- name: Set up Docker Buildx
8694
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)