Replies: 2 comments
-
Finally figured it out. Buildx version is currently outdated ( - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
++ version: v0.12.0
[...]
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
++ --annotation "index:org.opencontainers.image.description=Your description goes here" \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
|
Beta Was this translation helpful? Give feedback.
-
I seem to have the same problem with docker buildx imagetools create -t ghcr.io/ansible/community-ansible-dev-tools-container:test \
--annotation "index:org.opencontainers.image.description=A multi arch community container image for Ansible Devtools." \
ghcr.io/ansible/community-ansible-dev-tools-container:latest@sha256:fbe77ed1c5dff9a5012bc4bfd879bedea07a22ce5af9222a35a4b0cdd8e13f2d ghcr.io/ansible/community-ansible-dev-tools-container:latest@sha256:e71820b7fe2692900f56dd6112d6f93120a437bfacd1708a2b060d19c94cd97c I've followed the same steps as OP. Push the arm64/x86 images separately by digest and then create a manifest from those. The individual images have the annotations (since it's in the container file), but the final manifest doesn't, even after setting it with |
Beta Was this translation helpful? Give feedback.
-
I'm trying to add annotations to our docker images while building for multiple platforms. The relevant part of the dockerfile is as follows:
and the workflows looks like this:
the ARM images are built on raspberry pi-s using github ARC, while the x86 ones are built on the default github runners. My problem is that once I check the images on GHCR they have no description available:
Beta Was this translation helpful? Give feedback.
All reactions