将私有仓库导入 Travis CI/CD 中的另一个私有仓库

问题描述

我有几个已经在 Travis CI/CD 管道中设置得很好的存储库。其中一些存储库是“绿色”的,并且似乎可以正常工作。然而,其中一些存储库依赖于“基础”存储库,这只是另一个私有存储库。我们使用 Guthub 和 Python。

我已尝试通过 requirements.txt 文件 .travis.yml 导入的多种组合。每个存储库中还有 setup.py文件

Travis 网站上的文件迄今未能解决该问题。此外,我不清楚我应该使用 ssh 还是 https。

在 Docker 中,当前配置是这样的:

RUN git clone git@github.mycompany.com:myname/BaseRepo.git --config core.sshCommand="ssh -o 'StrictHostKeyChecking no' -i /opt/app/.ssh/id_ed25519"
ENV NSABASE_PATH "/opt/BaseRepo/"

当前来自 Travis 运行 (git push) 的回溯是:

cloning into '/home/travis/build/myname/Repo1/submodule/BaseRepo'...
ERROR: Permission to myname/BaseRepo.git denied to deploy key
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.mycompany.com:myname/BaseRepo.git' into submodule path '/home/travis/build/myname/Repo1/submodule/BaseRepo' Failed
Failed to clone 'submodule/BaseRepo'. Retry scheduled

谁能指出我在 Travis CI/CD 框架内将存储库从私有 Github 帐户导入到另一个存储库时哪里出错了?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...