You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling docker buildx bake app will try to build the download-artifacts target without mouting the secret, causing my download script to complain about the lack of token.
On the other hand, calling docker buildx bake download-artifacts works, and once in the cache, I can docker buildx bake app again and it will work.
I am using remote kubernetes builders.
Please let me know if you need a minimal example to reproduce the issue.
Expected behaviour
Secrets in transitive targets should work just like that.
Actual behaviour
Secrets in transitive targets are blank until the target is built directly.
This is not correct. It works when mounting secret as file in Dockerfile. If Dockerfile RUN exposed secret as env (+bake target build-context) then it was random if the secret was set or not. But doesn't matter if the secret in bake was defined based on file or based on env.
Contributing guidelines
I've found a bug and checked that ...
Description
When using
secret = []
on a transitive target, the secret is not loaded into the build.I don't have a short example handy, but in a nutshell:
Calling
docker buildx bake app
will try to build thedownload-artifacts
target without mouting the secret, causing my download script to complain about the lack of token.On the other hand, calling
docker buildx bake download-artifacts
works, and once in the cache, I candocker buildx bake app
again and it will work.I am using remote kubernetes builders.
Please let me know if you need a minimal example to reproduce the issue.
Expected behaviour
Secrets in transitive targets should work just like that.
Actual behaviour
Secrets in transitive targets are blank until the target is built directly.
Buildx version
github.com/docker/buildx v0.20.1-desktop.2 aaf7c2bc7f9ec3afee1cec77d671845a4b57a0c8
Docker info
Builders list
Configuration
docker buildx bake app
will not work; the download-artifacts target will fail.docker buildx bake download-artifacts
works. Once it's built,docker buildx bake app
works.Build logs
Additional info
No response
The text was updated successfully, but these errors were encountered: