Skip to content
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

Dockerfile #5

Open
ruzmat opened this issue Nov 28, 2021 · 1 comment
Open

Dockerfile #5

ruzmat opened this issue Nov 28, 2021 · 1 comment

Comments

@ruzmat
Copy link

ruzmat commented Nov 28, 2021

When building an image using a dockerfile in a repository, I get the following error:

[6/6] RUN --mount=type=ssh,id=github npm ci --only=production:
#14 1.673 npm ERR! Error while executing:
#14 1.673 npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/hashrabbit/carrot-pool-stratum.git
#14 1.673 npm ERR!
#14 1.673 npm ERR! Warning: Permanently added the ECDSA host key for IP address '140.82.121.3' to the list of known hosts.
#14 1.673 npm ERR! Permission denied (publickey).
#14 1.673 npm ERR! fatal: Could not read from remote repository.
#14 1.673 npm ERR!
#14 1.673 npm ERR! Please make sure you have the correct access rights
#14 1.673 npm ERR! and the repository exists.
#14 1.673 npm ERR!
#14 1.673 npm ERR! exited with error code: 128
#14 8.397
#14 8.397 npm ERR! A complete log of this run can be found in:

what's the matter why the command doesn't solve this problem "RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts"

@thygasantos
Copy link

Error: The ssh-private-key argument is empty. Maybe the secret has not been configured, or you are using a wrong secret name in your workflow file.
Estou com mesmo problema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants