Commit 264d8e92 authored by Onadim, Izer's avatar Onadim, Izer
Browse files

[ieo119] Attempt to use ruby image for heroku deployment

parent bcc3f61f
Pipeline #173671 failed with stages
in 1 minute and 55 seconds
...@@ -40,14 +40,15 @@ deploy-test: ...@@ -40,14 +40,15 @@ deploy-test:
deploy-prod: deploy-prod:
stage: deploy stage: deploy
image: ruby
script: script:
- echo "Deploy to production." - echo "Deploy to production."
- apt-get update && apt-get install -y ruby #- apt-get update && apt-get install -y ruby
- gem install --user-install dpl-heroku - gem install --user-install dpl-heroku
- if which ruby >/dev/null && which gem >/dev/null; then #- if which ruby >/dev/null && which gem >/dev/null; then
- PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH" #- PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
- fi #- fi
- dpl --provider=heroku --app=$LOGIN-simplewebapp --api-key=$HEROKU_API_KEY - dpl --provider=heroku --app=$LOGIN-simplewebapp --api-key=$HEROKU_API_KEY
only: #only:
- master #- master
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment