Skip to content

Commit

Permalink
ci(docker-build-push): upload digest with unique names #4
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed Feb 23, 2024
1 parent f86b005 commit 5aa8e56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ jobs:
- name: Sanitize platform variable
id: sanitize_platform
run: |
echo "SANITIZED_PLATFORM=$(echo '${{ matrix.platform }}' | sed 's/[^a-zA-Z0-9_-]//g')" >> $GITHUB_ENV
echo "::set-output name=sanitized_platform::$(echo $SANITIZED_PLATFORM)"
SANITIZED_PLATFORM="${{ matrix.platform }}" # Assuming direct usage for simplicity
SANITIZED_PLATFORM="${SANITIZED_PLATFORM//[^a-zA-Z0-9_-]/}" # Remove special chars
echo "SANITIZED_PLATFORM=${SANITIZED_PLATFORM}" # Echo for debug
echo "::set-output name=sanitized_platform::${SANITIZED_PLATFORM}"
- name: Upload digest
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 5aa8e56

Please sign in to comment.