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

ssh: Could not resolve hostname github.com:loremfoobar: Name does not resolve #3

Open
LoremFooBar opened this issue Aug 2, 2023 · 0 comments

Comments

@LoremFooBar
Copy link

I am trying to mirror a Bitbucket repo to GitHub. I added the public key as access key in BB and as deploy key with write permissions in GH. I am running the following command:

docker run 
    -e SRC_REPO=git@bitbucket.org:loremfoobar/reportgenerator-coverage-bitbucket-pipe.git 
    -e DEST_REPO=git@github.com:loremfoobar/reportgenerator-coverage-bitbucket-pipe.git 
    -e DEST_DEPLOY_KEY=<base64 private key> 
    -e SRC_DEPLOY_KEY=<base64 private key> 
    -p 8181:8080/tcp 
    karser/gitbitlabhub

The source BB repo is successfully cloned, but when the push command runs there's an error message:

+ git push --prune dest '+refs/remotes/origin/*:refs/heads/*' '+refs/tags/*:refs/tags/*'
ssh: Could not resolve hostname github.com:loremfoobar: Name does not resolve
fatal: Could not read from remote repository.

Any idea what's wrong?

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

1 participant