Replies: 5 comments 1 reply
|
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 ' *)
|
|
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:e71820b7fe2692900f56dd6112d6f93120a437bfacd1708a2b060d19c94cd97cI'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 |
|
i was reading this https://docs.docker.com/build/exporters/image-registry/#annotations and thought that maybe the |
|
Faced a similar issue and spent a day on this to find something that actually worked --
that is, set |
|
Hi, I had the same problem and after some research this works for me, example here : https://github.com/MaximeWewer/OpenLDAP_prometheus_exporter/blob/d75caa74209cff1eb3b8d70aba8fa53b3058d274/.github/workflows/build-and-release.yml#L121 GitHub Container Registry (GHCR) supports both OCI and Docker v2 Schema 2 formats. Setting I hope this helps you ^^ |
Uh oh!
There was an error while loading. Please reload this page.
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:
All reactions