-
Notifications
You must be signed in to change notification settings - Fork 572
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
I have a submodule with another token, how can i set build-push-action? #638
Comments
Looking at moby/buildkit#1533 you could use Another way is to set the username in the URL like To fix this we need some changes on BuildKit repo as atm there is only a best-effort to try reusing the same token for all |
docker/build-push-action@v3 uses Git context by default, but you can override it by setting context explicitly. This allows you to mutate the context using any actions, including actions/checkout@v3 with submodules (we use dedicated GitHub account for automation, then add that account's SSH key to repository secrets as DEPLOYER_SSHKEY):
|
Would love some additional explanation regarding the I've read the documentation (https://github.com/docker/build-push-action?tab=readme-ov-file#git-context & https://docs.docker.com/reference/cli/docker/image/build/#git-repositories), and from what I understood it simply tells docker where is the Dockerfile located (not path to file, but context such as "this current repo"). So by default it's taking the current repo, cloning it and then proceeding, and if mentioning the context as I did it simply skips the checkout part? (as long as it's the current repo). |
Submodule 'vcpkg' (git@github.com:microsoft/vcpkg.git) registered for path 'vcpkg' Cloning into '/var/lib/buildkit/runc-overlayfs/snapshots/snapshots/2/fs/vcpkg'... Warning: Permanently added 'github.com' (ED25519) to the list of known hosts. git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:microsoft/vcpkg.git' into submodule path '/var/lib/buildkit/runc-overlayfs/snapshots/snapshots/2/fs/vcpkg' failed ref: docker/build-push-action#638
The text was updated successfully, but these errors were encountered: