-
Notifications
You must be signed in to change notification settings - Fork 570
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
Checkout isn’t working #120
Comments
As I can see you're using a path context If you want to rely on Git context to allow buildx to checkout the repository for you, remove the |
Can I change the context to a directory using git context? |
A way to define a subdir would be to use:
But this is not yet supported. I will add a note in the README about this. |
I think it's easier and cleaner to just clone in a separate step |
Ah, interesting; I didn't know it was not yet supported in BuildKit. I opened a tracking issue for that; moby/buildkit#1684 |
Behaviour
As per the docs, it should automatically checkout the repo before building the docker image. I am building an image with a build context of a subfolder and the working directory is empty.
Steps to reproduce this issue
.
Expected behaviour
Repo should be cloned and build should succeed.
Actual behaviour
Repo is not cloned and build fails
Configuration
The text was updated successfully, but these errors were encountered: