如何在Travis CI中添加SSH密钥? [英] How to add SSH Key in Travis CI?

查看:231
本文介绍了如何在Travis CI中添加SSH密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Travis Doc中,设置中有 SSH密钥选项卡,但我的帐户中没有。我需要添加SSH密钥以在GitHub上克隆子模块。

In Travis Doc there is tab "SSH Key" in Settings, but not in my account. I need to add SSH Key to clone submodules on GitHub.

我的帐户:

Travis Doc:

Travis Doc:

推荐答案

此功能目前仅适用于私有存储库。

This feature is only available for private repositories currently.

对于公共存储库,您不需要它们是私有Git URL(假设它们在GitHub上),因此更改URL以使用公共克隆URL应该可以解决问题。

For public repositories, you shouldn't need them to be private Git URLs (assuming they're on GitHub), so changing the URLs to use public clone URLs should do the trick.

这篇关于如何在Travis CI中添加SSH密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆