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
tl;dr I can get docker buildx bake to succeed only when I cd to the subdirectory where docker-compose.yml. Can I similarly invoke a change of working directory with bake-action?
By having the ability to change the working directory, one would have a suitable workaround to the following issue in buildx
When a build definition file is specified in a subdirectory of the project such as above
Then resolution of Dockerfiles fails.
This is an issue with docker buildx bake itself, not bake-action:
docker buildx bake -f tests/docker-compose.yml
[+] Building 0.0s (0/0)
error: unable to prepare context: path "dockerfiles/debian9" not found
However, with docker buildx bake there is at least a workaround – Simply first change the working directory to be that of where the build definition file exists.
cd tests && docker buildx bake
cd tests && docker buildx bake
[+] Building 1.4s (23/23) FINISHED
# (output omitted)
Expected behaviour
bake-action should allow one to control the current working directory from which docker buildx bake is invoked.
Behaviour
tl;dr I can get
docker buildx bake
to succeed only when Icd
to the subdirectory where docker-compose.yml. Can I similarly invoke a change of working directory withbake-action
?By having the ability to change the working directory, one would have a suitable workaround to the following issue in buildx
docker/buildx#1028
Steps to reproduce this issue
Given the following project directory structure:
And the following workflow:
And the following tests/docker-compose.yml file
When a build definition file is specified in a subdirectory of the project such as above
Then resolution of Dockerfiles fails.
This is an issue with
docker buildx bake
itself, notbake-action
:However, with
docker buildx bake
there is at least a workaround – Simply first change the working directory to be that of where the build definition file exists.Expected behaviour
bake-action
should allow one to control the current working directory from whichdocker buildx bake
is invoked.Configuration
Logs
✅ logs_28.zip
The text was updated successfully, but these errors were encountered: