[ ] The documentation does not mention anything about my problem
[ ] There are no open or closed issues that are related to my problem
Description
I cache my repository submodules (as those rarely change), but docker/build-push-action@v5 attempts to fetch all branches and submodules by itself.. It fails, because if submodules are cached, checkout with ssh-key is never used.
Not sure why buil-push-action would attempt to fetch everything by itself? Is it possible to disable that?
P.S. Same workflow runs fine when I use docker/bake-action instead.
Expected behaviour
build-push-action should not be responsible for handling repository checkout.
Actual behaviour
build-push-action is attempting to checkout repo when its not intended.
#0 0.039 Initialized empty Git repository in /var/lib/buildkit/runc-overlayfs/snapshots/snapshots/1/fs/
#0 0.051 fatal: Not a valid object name 97071de07858cdf224ca8e5df8bfa9dbf2d34339^{commit}
...
...
#1 2.309 git@github.com: Permission denied (publickey).
#1 2.311 fatal: Could not read from remote repository.
Contributing guidelines
I've found a bug, and:
Description
I cache my repository submodules (as those rarely change), but
docker/build-push-action@v5
attempts to fetch all branches and submodules by itself.. It fails, because if submodules are cached, checkout withssh-key
is never used.Not sure why
buil-push-action
would attempt to fetch everything by itself? Is it possible to disable that?P.S. Same workflow runs fine when I use
docker/bake-action
instead.Expected behaviour
build-push-action
should not be responsible for handling repository checkout.Actual behaviour
build-push-action
is attempting to checkout repo when its not intended.Repository URL
No response
Workflow run URL
No response
YAML workflow
Workflow logs
When buildx runs in workflow:
Then it tries to fetch everything:
BuildKit logs
No response
Additional info
No response