Skip to content

Commit

Permalink
ci(docker-build-push): upload digest with unique names #3
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed Feb 23, 2024
1 parent cbf51ef commit f86b005
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,16 @@ jobs:
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- 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)"
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digest-${{ steps.build.outputs.digest }}
name: digest-${{ steps.sanitize_platform.outputs.sanitized_platform }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand Down

0 comments on commit f86b005

Please sign in to comment.