Skip to content

Commit

Permalink
fix: digest platform
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Dec 13, 2024
1 parent 077c71a commit cc40061
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ 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 @@ -80,14 +81,14 @@ jobs:
- name: Make DIGEST_NAME unique
run: |
DIGEST_NAME="digests-${{ inputs.image_org }}-${{ inputs.image_name }}-${{ inputs.tag }}-${{ inputs.cargo_profile }}-${{ github.sha }}-${{ matrix.platform}}"
PLATFORM="${{ matrix.platform}}"
# replace slash (/) with dash (-)
echo "DIGEST_NAME=${DIGEST_NAME//\//-}" >> $GITHUB_ENV
echo "DIGEST_PLATFORM=${PLATFORM//\//-}" >> $GITHUB_ENV
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: ${{ env.DIGEST_NAME }}
name: ${{ env.DIGEST_NAME }}-${{ DIGEST_PLATFORM }}
path: ${{ env.DIGEST_DIR_PATH }}/*
if-no-files-found: error
retention-days: 1
Expand Down

0 comments on commit cc40061

Please sign in to comment.