我目前正在运行CE版本8.17.4,并试图设置一个具有写访问权限的部署密钥(从8.16开始),以便我的运行程序实例可以将构建工件提交回存储库。我采取了以下步骤来设置它:
sudo ssh-keygen -t rsa -C "label" -b 4096after_script: - "git commit -am 'autobuild PDF'" - "git push origin master"当提交更改时,生成成功地运行在亚军上,直到git推送主命令,并引发此错误:
fatal: Authentication failed for 'http://gitlab-ci-token:xxxxxxxxxxxxxxxx@host/project.git/'
好的。有几个问题:
谢谢你的帮助!
发布于 2018-06-11 22:31:18
Jawad的评论对我有效:你需要强制SSH。例如
git remote add ssh_remote git@host:user/project.git
git push ssh-remote HEAD:dev谢谢贾瓦德
https://stackoverflow.com/questions/43787094
复制相似问题