Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
ci: make name for digest artifact unique
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgacsal committed Feb 2, 2024
1 parent 71d1169 commit 3dda294
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-and-push-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ jobs:
##
## Set digests cache name
##
echo "digests-cache-name=digests-${{ github.run_id }}-${image_name}" >> "$GITHUB_OUTPUT"
## Example: digest-1234-a2850e9cc4e2b3a3
##
image_name_md5="$(md5 <<< ${image_name})"
printf "digests-cache-name=digest-%s-%.16s" "${{ github.run_id }}" "${image_name_md5}" >> "$GITHUB_OUTPUT"
build-and-push:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3dda294

Please sign in to comment.