Skip to content

Commit

Permalink
as of upload-artifact@v4, artifact name must be unique (and must NOT…
Browse files Browse the repository at this point in the history
  • Loading branch information
tillkuhn authored Oct 17, 2024
1 parent f1ce13a commit a8d21d2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
- linux/amd64
- linux/arm64
steps:
-
name: Prepare PLATFORM_PAIR var for upload-artifact
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
-
name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -86,7 +91,9 @@ jobs:
name: Upload image digest
uses: actions/upload-artifact@v4
with:
name: digests
# as of upload-artifact@v4, artifact name must be unique (and must NOT contain a slash :-))
# https://docs.docker.com/build/ci/github-actions/multi-platform/
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand All @@ -100,11 +107,12 @@ jobs:
- ghcr-releaser
steps:
-
name: Download image digests
name: Download PLATFORM_PAIR specific image digests
uses: actions/download-artifact@v4
with:
name: digests
path: /tmp/digests
pattern: digests-*
merge-multiple: true
-
name: Set up Docker Buildx # but no need for QEMU in this job
uses: docker/setup-buildx-action@v2
Expand Down

0 comments on commit a8d21d2

Please sign in to comment.