2017-05-26 60 views
0

我試圖部署我們的應用Heroku我們設置在.gitlab-ci.yml看起來像Gitlab:未找到寶石

staging_heroku: 
    stage: deploy 
    script: 
    - git remote add heroku https://heroku:[email protected]/staging-myapp.git 
    - git push -f heroku master 

這就是我們在日誌中看到

Cloning repository... 
Cloning into '/builds/org/project'... 
Checking out 340111af as dev/feature1... 
Skipping Git submodules setup 
Downloading artifacts for maven-build (17234382)... 
Downloading artifacts from coordinator... ok  id=17234382 responseStatus=200 OK token=2YSHdANA 
/bin/sh: eval: line 46: apt-get: not found 
$ apt-get update -yqqq 
ERROR: Job failed: exit code 127 

這些選手甚至不有apt-get,所以我不能安裝gem

我甚至試過git命令,但即使這樣也沒有找到。有人可以幫忙嗎?

回答

0

您需要首先安裝rubyruby-dev! (Debian 8的rubygems-integration

staging: 
    type: deploy 
    script: 
    - apt-get update -yq 
    - apt-get install -y ruby ruby-dev rubygems-integration 
    - gem install dpl 
    - dpl --provider=heroku --app=teeth-taroko --api-key=$HEROKU_STAGING_API_KEY 
    only: 
    - develop