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

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

问题描述

在 Travis Doc 中,设置"中有SSH 密钥"选项卡,但我的帐户中没有.我需要添加 SSH Key 来克隆 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.

我的帐户:

特拉维斯文档:

推荐答案

此功能目前仅适用于私有仓库.

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天全站免登陆