【发布时间】:2016-04-06 17:34:38
【问题描述】:
我们当前的工作流程设置如下: 开发服务器 --> Repo/CI 服务器(在本例中为 Gitlab/Gitlab-CI)--> 生产服务器
我想将我当前的项目部署到生产服务器。现在我有一个非常简单的 ci 文件。
我的问题如下。每当跑步者运行 .my gitlab-ci.yml 文件时,我都会遇到权限问题(我想)
sudo: unable to resolve host vagrant
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: no tty present and no askpass program specified
clonando
sudo: unable to resolve host vagrant
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: no tty present and no askpass program specified
我的 .gitlab-ci.yml 文件如下:
image: php56
before_script:
- bash server.sh
job1:
script:
- php -v
这是我的 bash 文件:
echo -e "Logging to server \n"
sshpass -p Password ssh -T desarrollo@192.168.105.24
cd /var/www
sudo git init
sudo git clone http://gitlab.panoramalife.com/cpadilla/PruebaDeploy.git
它给了我这个错误。
我该如何解决这个问题?
【问题讨论】:
-
你应该给出解释,而不是很多代码
标签: deployment gitlab gitlab-ci