【发布时间】:2016-10-28 18:48:32
【问题描述】:
我正在尝试实现 Git DMZ 工作流程:https://gist.github.com/djspiewak/9f2f91085607a4859a66
所以我正在尝试编写一个从 dmz 分支合并到我的主分支的作业。
这是我想出的:
dmz_merge:
script:
- git checkout master
- git pull
- git merge origin/dmz --ff
- git push origin master
stage: deploy
only:
- dmz
但是当它运行时,我得到了这个失败:
Checking out 5f7dfe5b as dmz...
$ git checkout master
$ git pull
$ git merge origin/dmz --ff
Updating 005fbd1..5f7dfe5
Fast-forward
.gitlab-ci.yml | 1 +
1 file changed, 1 insertion(+)
$ git push origin master
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.mydomain.com/group/project.git/'
ERROR: Build failed: exit status 128
看起来它甚至没有尝试使用我的 SSH 密钥,这是我预计会遇到麻烦的地方。我还需要做些什么来推动工作吗?我没有任何运气通过他们的文档。
【问题讨论】:
标签: git gitlab-ci gitlab-ci-runner