Skip to content

Commit

Permalink
Separate digests by image name
Browse files Browse the repository at this point in the history
  • Loading branch information
Gawdl3y committed Dec 10, 2024
1 parent d88f44e commit 3c134d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ jobs:
- name: Export digest
if: github.event_name != 'pull_request'
run: |
mkdir -p /tmp/digests
mkdir -p /tmp/digests/${{ env.IMAGE_NAME }}
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
touch "/tmp/digests/${{ env.IMAGE_NAME }}/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v4
if: github.event_name != 'pull_request'
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
path: /tmp/digests/${{ env.IMAGE_NAME }}/*
if-no-files-found: error
retention-days: 1

Expand All @@ -114,7 +114,7 @@ jobs:
- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
path: /tmp/digests/${{ env.IMAGE_NAME }}
pattern: digests-*
merge-multiple: true

Expand All @@ -136,7 +136,7 @@ jobs:
password: ${{ github.token }}

- name: Create manifest list and push
working-directory: /tmp/digests
working-directory: /tmp/digests/${{ env.IMAGE_NAME }}
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.IMAGE_NAME }}@sha256:%s ' *)
Expand Down

0 comments on commit 3c134d7

Please sign in to comment.