Skip to content

Commit

Permalink
Slugify platform name for digest upload
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikjuvonen committed Apr 22, 2024
1 parent c90ac53 commit 4d97454
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,14 @@ jobs:
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Platform slug
id: platform-slug
run: echo "platform=${{ matrix.platform }}" | tr '/' '-' >> $GITHUB_OUTPUT

- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests
name: digests-${{ steps.platform-slug.outputs.platform }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand All @@ -88,8 +92,9 @@ jobs:
- name: Download digests
uses: actions/download-artifact@v4
with:
name: digests
path: /tmp/digests
pattern: digests-*
merge-multiple: true

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

0 comments on commit 4d97454

Please sign in to comment.