-
Notifications
You must be signed in to change notification settings - Fork 471
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
docker buildx bake
handles environment variables as arguments differently in v0.6.0
#703
Labels
kind/bug
Something isn't working
Comments
@andrewsmith Thanks for your feedback and repro, what is the output of |
seeing the same problem with buildx v0.6.0. The bake application seems to not resolve env variables as before. |
Was able to reproduce. Keep you in touch with a fix. |
This comment has been minimized.
This comment has been minimized.
This was referenced Aug 9, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! We noticed a breakage in our build today and I started investigating this afternoon. We're using buildx within GitHub Actions. I was able to isolate the behavior down to a fairly simple set of steps.
Suppose we have a Dockerfile that looks like:
and a docker-compose.yaml that looks like:
Essentially, we want to take the environment variable $FOO in the build environment and store that in a file 'foo' as part of the image.
When we run the following with buildx v0.5.1, this is what we get:
With the recently released v0.6.0, we get:
Notice that in this case, "$FOO" is written to the file in the image (step #5), rather than the value from the environment variable. It doesn't seem to be expanded properly.
For comparison,
docker-compose build
(not using buildx), gives us:Which is the same behavior as buildx bake in v0.5.1.
Not sure if this is helpful too, but here is the version of Docker we are seeing this in:
The text was updated successfully, but these errors were encountered: