laravel - 在 gitlab-ci 配置上使用多个存储库
问题描述
您好,我想知道如何将 gitlab Ci/CD 与文件 gitlab-ci.yml 所在的一个存储库一起使用。以及一个作为 vue 工具组件的存储库。
我用私人访问令牌尝试了一些东西,但出现了错误:
$ curl "https://gitlab.com/BGDataPLM/octopus/octopus-vue-tools?private_token=MyPrivateKey"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 98 100 98 0 0 347 <html><body>You are being <a href="https://gitlab.com/users/sign_in">redirected</a>.</body></html> 0 --:--:-- --:--:-- --:--:-- 348
$ npm install
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t https://gitlab.com/BGDataPLM/octopus/octopus-vue-tools.git
npm ERR!
npm ERR! remote: HTTP Basic: Access denied
npm ERR! fatal: Authentication failed for 'https://gitlab.com/BGDataPLM/octopus/octopus-vue-tools.git/'
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-04-06T13_51_56_682Z-debug.log
Cleaning up file based variables
00:01
ERROR: Job failed: exit code 1
我想知道如何从我的工作中获得另一个仓库的访问权限,谢谢
解决方案
推荐阅读
- java - 如何以英寸为单位设置固定的列宽值。阿帕奇 POI
- rest - OData GetById 不适用于 Asp.net Core 2.2
- ios - SwiftUI:如何在单击 ActionSheet 按钮时呈现新视图?
- apache-nifi - 如何在apache nifi中使用rest api获取日志
- c# - ASP.NET Core 2.2 MVC 将参数传递给授权策略
- javascript - 无法解决 TypeError (JS)
- flutter - 下载只能在我的flutter应用程序中查看的文件和加密文件
- reactjs - 将 Material-UI 转换为 react 中的类
- asp.net-core - 如何将客户端单击事件添加到 div 以调用 ASP.NET Core 2.2 Razor 页面中的方法
- ios - 使用 MVVM 和依赖注入实现应用程序状态恢复的最佳方法是什么?