Skip to content

Commit

Permalink
ci: align with new download-artifact API
Browse files Browse the repository at this point in the history
  • Loading branch information
dezeroku committed Sep 4, 2024
1 parent 2aee148 commit 212bbe0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,14 @@ jobs:
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
PLATFORM=${{ matrix.platform }}
# Replace slashes in platform name with dashes
echo "PLATFORM_ARTIFACT=${PLATFORM//\//-}" >> $GITHUB_ENV
- name: Upload digest
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: digests
name: digests-${{ env.PLATFORM_ARTIFACT }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand All @@ -143,7 +146,8 @@ jobs:
- name: Download digests
uses: actions/download-artifact@v4
with:
name: digests
pattern: digests-*
merge-multiple: true
path: /tmp/digests

- name: Set up Docker Buildx
Expand Down

0 comments on commit 212bbe0

Please sign in to comment.