Skip to content

Commit

Permalink
Fixed CI pipeline with upload-artifact@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickBaus committed Dec 17, 2023
1 parent 1057926 commit 17f6ad4
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,21 @@ jobs:
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
shell: bash

- name: Sanitize platform string
id: platform
env:
PLATFORM_STRING: ${{ matrix.platform }}
run: |
echo "value=${PLATFORM_STRING//\//_}" >> $GITHUB_OUTPUT
shell: bash

- name: Upload digest
if: needs.prepare.outputs.push == 'true'
uses: actions/upload-artifact@v4
with:
name: digests
name: digest-${{ steps.platform.outputs.value }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand All @@ -122,8 +131,13 @@ jobs:
- name: Download digests
uses: actions/download-artifact@v4
with:
name: digests
path: /tmp/digests
path: artifacts

- name: Merge files
run: |
mkdir /tmp/digests
mv artifacts/*/* /tmp/digests
shell: bash

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit 17f6ad4

Please sign in to comment.