-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple export point #1485
Comments
Multiple outputs are not allowed atm but for your case you can just specify multiple values for name, separated by a comma. Note that in cli you also need to quote the value because the format is csv. #807 (comment) |
@tonistiigi could you provide an example for the quotes? Do I quote the whole value? Or every name value separately? |
I dare say the correct format is:
Note, that you have to place quotes around This works for GithubActions and worked for GitlabCI as well, as was described in the answer that helped me |
Using |
Same issue here
|
@ties-s @adriannieto-attechnest Did you find a solution to your problem? I got the exact same issue. |
DOCKER_PUSH_TARGETS="$CI_DOCKER_IMAGE_DESTINATION:$CI_DOCKER_IMAGE_TAG-$GIT_VERSION-$TIMESTAMP,$CI_DOCKER_IMAGE_DESTINATION:$CI_DOCKER_IMAGE_TAG"
buildctl-daemonless.sh build \
--frontend=dockerfile.v0 \
--local context=. \
--local dockerfile=. \
--opt filename=./$CI_DOCKERFILE_NAME $CI_DOCKER_BUILDKIT_EXTRA_OPTS \
--import-cache type=local,src=$CI_DOCKER_BUILDKIT_CACHE_PATH \
--export-cache type=local,dest=$CI_DOCKER_BUILDKIT_CACHE_PATH \
--output type=image,\"name=$DOCKER_PUSH_TARGETS\",push=$CI_BUILD_DOCKER_ENABLE_PUSH
This is now working for us |
Hi,
Does buildkit support multiple output points something like below lines?
--output type=image,name=prod.docker.io/username/image,push=true
--output type=image,name=test.docker.io/username/image,push=true \
When I try to do add multiple outputs it gives the error.
error: currently only single Exports can be specified
Is there any other way to do that?
--output type=image,"
name=prod.docker.io/abc:3, name=test.docker.io/abc:3"
exports only prod.docker.io
Thanks
The text was updated successfully, but these errors were encountered: