Skip to content

Commit 849bf47

Browse files
committed
🧹 fix: Image release
🧹 fix: Image release
1 parent dd85a9d commit 849bf47

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ jobs:
7373
file: Dockerfile
7474
platforms: ${{ matrix.platform }}
7575
labels: ${{ steps.meta.outputs.labels }}
76-
outputs: type=image,name=${{ inputs.package_name
77-
}},push-by-digest=true,name-canonical=true,push=true
76+
outputs: type=image,name=${{ inputs.package_name }},push-by-digest=true,name-canonical=true,push=true
7877

7978
- name: Export digest
8079
run: |
@@ -83,9 +82,9 @@ jobs:
8382
touch "/tmp/digests/${digest#sha256:}"
8483
8584
- name: Upload digest
86-
uses: actions/upload-artifact@v3
85+
uses: actions/upload-artifact@v4
8786
with:
88-
name: digests
87+
name: digests-${{ matrix.platform == 'linux/amd64' && 'linux-amd64' || 'linux-arm64' }}
8988
path: /tmp/digests/*
9089
if-no-files-found: error
9190
retention-days: 1
@@ -96,10 +95,11 @@ jobs:
9695
- build
9796
steps:
9897
- name: Download digests
99-
uses: actions/download-artifact@v3
98+
uses: actions/download-artifact@v4
10099
with:
101-
name: digests
100+
pattern: digests-*
102101
path: /tmp/digests
102+
merge-multiple: true
103103

104104
- name: Set up Docker Buildx
105105
uses: docker/setup-buildx-action@v2
@@ -122,7 +122,7 @@ jobs:
122122
- name: Create manifest list and push
123123
working-directory: /tmp/digests
124124
run: |
125-
tags=$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")
125+
tags=$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< '${{ steps.meta.outputs.json }}')
126126
if [[ -z "$tags" ]]; then
127127
echo "No tags specified, skipping docker buildx imagetools create command"
128128
else

0 commit comments

Comments
 (0)