我的CI项目依赖于另一个私人仓库。所以我参考document使用
来上传私钥➜ travis sshkey --upload ~/.ssh/id_travis_rsa --pro
Updating ssh key for Jeff-Tian/uni-sso with key from /Users/tianjef/.ssh/id_travis_rsa
Current SSH key: key for clone k8s-config
Finger print: 65:25:66:26:4d:5d:9f:ac:25:ba:ea:be:c4:d5:e3:5f
从上面我仔细检查了指纹,并与github ssh键进行了比较:
它们匹配。
但是,travis构建仍然失败:
([https://travis-ci.com/github/Jeff-Tian/uni-sso/builds/161350192)
$ git clone [email protected]:Jeff-Tian/k8s-config.git ${HOME}/k8s-config
Cloning into '/home/travis/k8s-config'...
Warning: Permanently added the RSA host key for IP address '140.82.114.4' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The command "git clone [email protected]:Jeff-Tian/k8s-config.git ${HOME}/k8s-config" failed and exited with 128 during .
然后我检查travis设置上的设置,找不到ssh键设置窗格:
哪里出问题了?这是Travis CI错误吗?