Skip to content

Commit d8a248e

Browse files
committed
ci: create multi-arch manifest from digest files using loop to reference basenames
Replace printf-based expansion with a shell loop that emits ghcr.io/<repo>/<name>@sha256:<basename> for each file in /tmp/digests. This ensures the manifest uses the digest hashes (file basenames) and avoids including full file paths or formatting issues when joining entries. Signed-off-by: Aaron Wislang <aaron.wislang@microsoft.com>
1 parent 419b127 commit d8a248e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-devcontainer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159
run: |
160160
docker buildx imagetools create \
161161
$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
162-
$(printf 'ghcr.io/${{ github.repository }}/${{ steps.image-name.outputs.name }}@sha256:%s ' /tmp/digests/*)
162+
$(for digest in /tmp/digests/*; do echo "ghcr.io/${{ github.repository }}/${{ steps.image-name.outputs.name }}@sha256:$(basename $digest)"; done)
163163
env:
164164
DOCKER_METADATA_OUTPUT_JSON: ${{ steps.meta.outputs.json }}
165165

0 commit comments

Comments
 (0)