Skip to content

Commit 6b64bd1

Browse files
committed
chore(workflows): update Docker publish workflow to use PLATFORM_SLUG for artifact naming
- Added a step to set the PLATFORM_SLUG environment variable by transforming the matrix platform name. - Updated the artifact upload step to use PLATFORM_SLUG for naming, improving clarity and consistency in artifact management.
1 parent 98d7765 commit 6b64bd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,13 @@ jobs:
9393
mkdir -p /tmp/digests
9494
digest="${{ steps.build.outputs.digest }}"
9595
touch "/tmp/digests/${digest#sha256:}"
96+
echo "PLATFORM_SLUG=$(echo '${{ matrix.platform }}' | tr '/' '-')" >> $GITHUB_ENV
9697
9798
- name: Upload digest
9899
if: ${{ github.event_name != 'pull_request' }}
99100
uses: actions/upload-artifact@v4
100101
with:
101-
name: digests-${{ matrix.platform }}
102+
name: digests-${{ env.PLATFORM_SLUG }}
102103
path: /tmp/digests/*
103104

104105
merge:

0 commit comments

Comments
 (0)