Skip to content

Commit b265bb8

Browse files
authored
ci: fix artifact upload issue on release build (#2389)
1 parent 40ae73f commit b265bb8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/release-docker-image.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,16 @@ jobs:
7979
touch "${{ env.DIGEST_DIR_PATH }}/${digest#sha256:}"
8080
ls -lah ${{ env.DIGEST_DIR_PATH }}
8181
82+
- name: Format DIGEST_PLATFORM
83+
run: |
84+
PLATFORM="${{ matrix.platform }}"
85+
# replace slash (/) with dash (-)
86+
echo "DIGEST_PLATFORM=${PLATFORM//\//-}" >> $GITHUB_ENV
87+
8288
- name: Upload digest
8389
uses: actions/upload-artifact@v4
8490
with:
85-
name: ${{ env.DIGEST_NAME }}
91+
name: ${{ env.DIGEST_NAME }}-${{ env.DIGEST_PLATFORM }}
8692
path: ${{ env.DIGEST_DIR_PATH }}/*
8793
if-no-files-found: error
8894
retention-days: 1
@@ -93,10 +99,11 @@ jobs:
9399
runs-on: ubuntu-24.04
94100
steps:
95101
- name: Download digests
96-
uses: actions/download-artifact@v3
102+
uses: actions/download-artifact@v4
97103
with:
98-
name: ${{ env.DIGEST_NAME }}
104+
pattern: ${{ env.DIGEST_NAME }}*
99105
path: ${{ env.DIGEST_DIR_PATH }}
106+
merge-multiple: true
100107

101108
- name: Set up Docker Buildx
102109
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)