@@ -241,17 +241,17 @@ jobs:
241241 image_name="${{ github.repository }}"
242242 echo "Using GitHub repository: ${image_name}"
243243 fi
244-
244+
245245 # Reconstruct tags
246246 version="${{ needs.prepare-metadata.outputs.version }}"
247247 release_tag="${{ needs.prepare-metadata.outputs.release_tag }}"
248248 short_sha="${{ needs.prepare-metadata.outputs.short_sha }}"
249-
249+
250250 tags="${image_name}:${version}"
251251 tags="${tags},${image_name}:${version}-${short_sha}"
252252 tags="${tags},${image_name}:${release_tag}"
253253 tags="${tags},${image_name}:${release_tag}-${short_sha}"
254-
254+
255255 echo "image_name=${image_name}" >> $GITHUB_OUTPUT
256256 echo "tags=${tags}" >> $GITHUB_OUTPUT
257257 echo "Created tags: ${tags}"
@@ -262,22 +262,23 @@ jobs:
262262 # Define the platform-specific tags
263263 AMD_TAG="${{ steps.image_tags.outputs.image_name }}:${{ needs.prepare-metadata.outputs.version }}-${{ needs.prepare-metadata.outputs.short_sha }}-amd64"
264264 ARM_TAG="${{ steps.image_tags.outputs.image_name }}:${{ needs.prepare-metadata.outputs.version }}-${{ needs.prepare-metadata.outputs.short_sha }}-arm64"
265-
265+
266266 echo "AMD64 Tag: ${AMD_TAG}"
267267 echo "ARM64 Tag: ${ARM_TAG}"
268-
268+
269269 # Convert comma-separated tags string to array and create manifest for each
270270 IFS=',' read -ra TAGS <<< "${{ steps.image_tags.outputs.tags }}"
271271 for TAG in "${TAGS[@]}"; do
272272 # Trim any whitespace
273+
273274 TAG=$(echo "$TAG" | xargs)
274275 echo "Creating manifest for tag: $TAG"
275276 docker buildx imagetools create \
276277 --tag "$TAG" \
277278 "$AMD_TAG" \
278279 "$ARM_TAG"
279280 done
280-
281+
281282 echo "Multi-platform manifest created successfully"
282283
283284 - name : Update Release Manifest
0 commit comments