2017-01-12 72 views
1

我有我的网站托管在数字海洋和我的回购gitlab。我的Digital Ocean Server上没有安装gitlab实例。我只是使用.gitlab-ci.yml文件。CI与Gitlab和数字海洋

在我的CI脚本中,我将数字海洋CD放入我的项目中,并尝试提取最新的代码。

我还在数字海洋服务器上生成了一个ssh密钥,并将它添加到了我在Gitlab上的ssh-keys。

我不确定是否有防火墙,我无法过去或什么。

不幸的是,它错误地出现了这个错误。

Running with gitlab-ci-multi-runner 1.9.0 (82714ae) 
Using Docker executor with image ruby:2.1 ... 
Pulling docker image ruby:2.1 ... 
Running on runner-4e4528ca-project-1209495-concurrent-0 via runner-  4e4528ca-machine-1484021348-29523945-digital-ocean-4gb... 
Cloning repository... 
Cloning into '/builds/Rchampin/ryan_the_developer_django'... 
Checking out b3783fbf as master... 
$ ssh [email protected] 
Pseudo-terminal will not be allocated because stdin is not a terminal. 

Host key verification failed. 

ERROR: Build failed: exit code 1 

这是我的CI脚本。

before_script: 
    - ssh [email protected] 
    - cd /home/rchampin/ryan_the_developer_django 

pull: 
    script: 
    - git pull 

回答

0

你有一些optinos在this question

ssh -t -t 
# or 
ssh -T 

尝试这应该避免请求伪终端。