Hello,
I was very excited about the Pipeline runtime v3 release and wanted to use it for publishing multi-arch docker images using it.
I followed your documentation, to build images for platforms linux/amd64 and linux/arm64. They are built correctly. However, I'm not able to list them with `docker image ls --tree` nor publishing them in a separate step.
I followed your instructions by first creating an image with docker-cli, compose and buildx preinstalled and then defining a pipeline custom trigger to build the docker multi-arch image as described in 'Multi -arch Build' section.
The build produces this warning message:
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
Is there a way with bitbucket pipeline runtime v3 to list and publish multi-arch docker images after the build step?
Thank you very much for your help!
Hi @Antoine
Welcome to the community.
Could you please share your YAML config for us to check? Please mask any sensitive information before sharing it
Regards,
Mark C
Hello @Mark C
Thank you for your support.
I used the config given in the documentation
options:
runtime:
cloud:
version: "3"
pipelines:
custom:
multi-arch-build:
- step:
image: "<my-image-with-docker-cli-and-buildx>"
services:
- docker
script
- docker buildx create --name multiarch-builder --driver docker-container --use
- docker buildx inspect --bootstrap
- docker run --rm --privileged tonistiigi/binfmt --install all
- docker buildx build -t test:local --platform=linux/amd64,linux/arm64 .
- docker image ls --tree # won't return any image
- docker image push test:local # fails
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.