Skip to content

Commit

Permalink
Update usage of upload-artifact for v4 api.
Browse files Browse the repository at this point in the history
  • Loading branch information
aclemons committed May 19, 2024
1 parent abc6348 commit 61bc72d
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/docker-full-current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ jobs:
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
show-progress: false
- name: Set artifact name
run: |
if [ "${{ matrix.platform }}" = "linux/386" ] ; then
printf 'ARTIFACT_NAME=digests-386\n' >> "$GITHUB_ENV"
elif [ "${{ matrix.platform }}" = "linux/amd64" ] ; then
printf 'ARTIFACT_NAME=digests-amd64\n' >> "$GITHUB_ENV"
elif [ "${{ matrix.platform }}" = "linux/arm64/v8" ] ; then
printf 'ARTIFACT_NAME=digests-arm64\n' >> "$GITHUB_ENV"
else
echo "Unhandled platform ${{ matrix.platform }}"
exit 1
fi
- name: Docker meta
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
Expand Down Expand Up @@ -112,7 +124,7 @@ jobs:
- name: Upload digest
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: digests
name: ${{ env.ARTIFACT_NAME }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand All @@ -127,8 +139,9 @@ jobs:
- name: Download digests
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: digests
pattern: digests-*
path: /tmp/digests
merge-multiple: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
- name: Docker meta
Expand Down

0 comments on commit 61bc72d

Please sign in to comment.