Skip to content

Commit

Permalink
fix: digest name slash
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Dec 13, 2024
1 parent a024cfc commit 077c71a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ on:
description: Cargo profile. i.e. release, dev
default: release
env:
DIGEST_NAME: digests-${{ inputs.image_org }}-${{ inputs.image_name }}-${{ inputs.tag }}-${{ inputs.cargo_profile }}-${{ github.sha }}
DIGEST_DIR_PATH: /tmp/digests

jobs:
Expand Down Expand Up @@ -79,10 +78,16 @@ jobs:
touch "${{ env.DIGEST_DIR_PATH }}/${digest#sha256:}"
ls -lah ${{ env.DIGEST_DIR_PATH }}
- name: Make DIGEST_NAME unique
run: |
DIGEST_NAME="digests-${{ inputs.image_org }}-${{ inputs.image_name }}-${{ inputs.tag }}-${{ inputs.cargo_profile }}-${{ github.sha }}-${{ matrix.platform}}"
# replace slash (/) with dash (-)
echo "DIGEST_NAME=${DIGEST_NAME//\//-}" >> $GITHUB_ENV
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: ${{ env.DIGEST_NAME }}-${{ matrix.platform.replace('/','-') }}
name: ${{ env.DIGEST_NAME }}
path: ${{ env.DIGEST_DIR_PATH }}/*
if-no-files-found: error
retention-days: 1
Expand Down

0 comments on commit 077c71a

Please sign in to comment.