Skip to content

Commit

Permalink
ci: fix artifact upload issue on release build (#2389)
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek authored Dec 13, 2024
1 parent 40ae73f commit b265bb8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,16 @@ jobs:
touch "${{ env.DIGEST_DIR_PATH }}/${digest#sha256:}"
ls -lah ${{ env.DIGEST_DIR_PATH }}
- name: Format DIGEST_PLATFORM
run: |
PLATFORM="${{ matrix.platform }}"
# replace slash (/) with dash (-)
echo "DIGEST_PLATFORM=${PLATFORM//\//-}" >> $GITHUB_ENV
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: ${{ env.DIGEST_NAME }}
name: ${{ env.DIGEST_NAME }}-${{ env.DIGEST_PLATFORM }}
path: ${{ env.DIGEST_DIR_PATH }}/*
if-no-files-found: error
retention-days: 1
Expand All @@ -93,10 +99,11 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.DIGEST_NAME }}
pattern: ${{ env.DIGEST_NAME }}*
path: ${{ env.DIGEST_DIR_PATH }}
merge-multiple: true

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit b265bb8

Please sign in to comment.