Skip to content

Commit 34c856e

Browse files
authored
Update artifacts version (#269)
1 parent 6270249 commit 34c856e

File tree

1 file changed

+52
-13
lines changed

1 file changed

+52
-13
lines changed

.github/workflows/build.yaml

Lines changed: 52 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ jobs:
190190
191191
- name: Upload digest
192192
if: needs.check-access.outputs.has-token-access == 'true'
193-
uses: actions/upload-artifact@v3
193+
uses: actions/upload-artifact@v4
194194
with:
195-
name: digests-router
195+
name: digests-router-${{ matrix.arch }}
196196
path: /tmp/digests-router/*
197197
if-no-files-found: error
198198
retention-days: 1
@@ -212,13 +212,34 @@ jobs:
212212
steps:
213213
- name: Clear digests
214214
run: |
215-
rm -rf /tmp/digests-router/* || true
215+
mkdir -p /tmp/digests-router/public /tmp/digests-router/private
216+
rm -rf /tmp/digests-router/public/* /tmp/digests-router/private/* || true
216217
217-
- name: Download digests
218-
uses: actions/download-artifact@v3
218+
- name: Download AMD64 digests
219+
uses: actions/download-artifact@v4
219220
with:
220-
name: digests-router
221-
path: /tmp/digests-router
221+
name: digests-router-amd64
222+
path: /tmp/digests-router-amd64
223+
224+
- name: Download ARM64 digests
225+
uses: actions/download-artifact@v4
226+
with:
227+
name: digests-router-arm64
228+
path: /tmp/digests-router-arm64
229+
230+
- name: Merge digests
231+
run: |
232+
# Copy files from platform-specific folders to the main folder
233+
cp -r /tmp/digests-router-amd64/public/* /tmp/digests-router/public/ || true
234+
cp -r /tmp/digests-router-amd64/private/* /tmp/digests-router/private/ || true
235+
cp -r /tmp/digests-router-arm64/public/* /tmp/digests-router/public/ || true
236+
cp -r /tmp/digests-router-arm64/private/* /tmp/digests-router/private/ || true
237+
238+
# List files to verify
239+
echo "Public digests:"
240+
ls -la /tmp/digests-router/public/ || true
241+
echo "Private digests:"
242+
ls -la /tmp/digests-router/private/ || true
222243
223244
- name: Set up Docker Buildx
224245
uses: docker/setup-buildx-action@v3
@@ -388,9 +409,9 @@ jobs:
388409
389410
- name: Upload digest
390411
if: needs.check-access.outputs.has-token-access == 'true'
391-
uses: actions/upload-artifact@v3
412+
uses: actions/upload-artifact@v4
392413
with:
393-
name: digests-extension
414+
name: digests-extension-${{ matrix.arch }}
394415
path: /tmp/digests/*
395416
if-no-files-found: error
396417
retention-days: 1
@@ -409,12 +430,30 @@ jobs:
409430
steps:
410431
- name: Clear digests
411432
run: |
433+
mkdir -p /tmp/digests
412434
rm -rf /tmp/digests/* || true
413-
- name: Download digests
414-
uses: actions/download-artifact@v3
435+
436+
- name: Download x86_64 digests
437+
uses: actions/download-artifact@v4
415438
with:
416-
name: digests-extension
417-
path: /tmp/digests
439+
name: digests-extension-x86_64
440+
path: /tmp/digests-x86_64
441+
442+
- name: Download aarch64 digests
443+
uses: actions/download-artifact@v4
444+
with:
445+
name: digests-extension-aarch64
446+
path: /tmp/digests-aarch64
447+
448+
- name: Merge digests
449+
run: |
450+
# Copy files from platform-specific folders to the main folder
451+
cp -r /tmp/digests-x86_64/* /tmp/digests/ || true
452+
cp -r /tmp/digests-aarch64/* /tmp/digests/ || true
453+
454+
# List files to verify
455+
echo "Extension digests:"
456+
ls -la /tmp/digests/ || true
418457
- name: Set up Docker Buildx
419458
uses: docker/setup-buildx-action@v3
420459

0 commit comments

Comments
 (0)