@@ -144,13 +144,16 @@ jobs:
144
144
echo "NYDUS_STABLE_VER=$NYDUS_STABLE_VER" >> "$GITHUB_ENV"
145
145
printf 'nydus version is: %s\n' "$NYDUS_STABLE_VER"
146
146
- name : build and push nydus-snapshotter image
147
- uses : docker/build-push-action@v3
147
+ uses : docker/build-push-action@v5
148
148
with :
149
149
context : misc/snapshotter
150
150
file : misc/snapshotter/Dockerfile
151
151
push : true
152
152
platforms : ${{ matrix.build-os }}/${{ matrix.build-arch }}
153
- tags : ${{ steps.meta.outputs.tags }}-${{ matrix.build-arch }}
153
+ provenance : false
154
+ tags : |
155
+ ${{ fromJSON(steps.meta.outputs.json).tags[0] }}-${{ matrix.build-arch }}
156
+ ${{ fromJSON(steps.meta.outputs.json).tags[1] }}-${{ matrix.build-arch }}
154
157
labels : ${{ steps.meta.outputs.labels }}
155
158
build-args : NYDUS_VER=${{ env.NYDUS_STABLE_VER }}
156
159
@@ -171,7 +174,12 @@ jobs:
171
174
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
172
175
- name : Publish manifest for multi-arch image
173
176
run : |
174
- docker manifest create ${{ steps.meta.outputs.tags }} \
175
- --amend ${{ steps.meta.outputs.tags }}-amd64 --amend ${{ steps.meta.outputs.tags }}-arm64 \
176
- --amend ${{ steps.meta.outputs.tags }}-s390x --amend ${{ steps.meta.outputs.tags }}-ppc64le
177
- docker manifest push ${{ steps.meta.outputs.tags }}
177
+ IFS=',' read -ra tags <<< "$(echo "${{ steps.meta.outputs.tags }}" | tr '\n' ',')"
178
+ for tag in "${tags[@]}"; do
179
+ docker manifest create "${tag}" \
180
+ --amend "${tag}-amd64" \
181
+ --amend "${tag}-arm64" \
182
+ --amend "${tag}-s390x" \
183
+ --amend "${tag}-ppc64le"
184
+ docker manifest push "${tag}"
185
+ done
0 commit comments