estesp / manifest-tool

Command line tool to create and query container image manifest list/indexes
Apache License 2.0
737 stars 92 forks source link

Multiple targets #250

Open cdenneen opened 8 months ago

cdenneen commented 8 months ago

Can the --target parameter be specified multiple times? accept multiple targets?

I am looking to build multi-arch image with specific tag but also would like option to push :latest as well at the same time?

cdenneen commented 7 months ago

I'm building with:

$ ./manifest-tool --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" push from-args --platforms linux/amd64,linux/arm64 --template ${IMAGE_NAME}-ARCH:${DOCKER_TAG} --tags ${DOCKER_TAG},latest --target ${IMAGE_NAME}:${DOCKER_TAG}

but it seems that even though I'm "tagging with the tag and latest" it's only pushing one with the tag.