首页 > 解决方案 > 如何在 .gitlab-cy.yml 中包含远程私有 git 文件?

问题描述

我希望我的.gitlab-ci.yml开头是:

include:
- remote: https://gitlab-ci-token:$GL_TOKEN@gitlab.com/..../template/-/raw/master/glab-ci-template.yml

这个想法是将模板导入到我的.gitlab-ci.yml. 但是,我收到 403 错误。

如何从我有权访问的另一个私有存储库导入模板文件?谢谢

标签: gitlab-cigitlab-ci-runner

解决方案


推荐阅读