Skip to content

Commit

Permalink
Include the image name as part of the tag
Browse files Browse the repository at this point in the history
The `--tag` option for `docker buildx imagetools create` expects a full
image name and tag in the form user/app:tag. The example in the Docker
documentation only produces the tag portion which results in the
command attempting to push to the Docker library with the tag as the
image target. Since our token has no such authorization it errors with
ERROR: server message: insufficient_scope: authorization failed
  • Loading branch information
mcdonnnj committed Feb 1, 2024
1 parent 99a3477 commit e2acb2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -645,15 +645,15 @@ jobs:
working-directory: /tmp/digests
run: |
docker buildx imagetools create \
$(jq -cr '.tags | map("--tag " + .) | join(" ")' \
$(jq -cr '.tags | map("--tag ${{ env.IMAGE_NAME }}" + .) | join(" ")' \
<<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.IMAGE_NAME }}@sha256:%s ' *)
- name: Create manifest list and push (GitHub Container Registry)
working-directory: /tmp/digests
run: |
docker buildx imagetools create \
$(jq -cr '.tags | map("--tag " + .) | join(" ")' \
<<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(jq -cr '.tags | map("--tag ghcr.io/${{ env.IMAGE_NAME }}" + .) | \
join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf 'ghcr.io/${{ env.IMAGE_NAME }}@sha256:%s ' *)
- name: Inspect image
run: |
Expand Down

0 comments on commit e2acb2d

Please sign in to comment.