fix ruby version in CI

This commit is contained in:
2021-05-06 17:46:25 +02:00
parent 474b443691
commit 6c286e8f10

View File

@@ -1,17 +1,17 @@
before_script: before_script:
- apt-get update -qy - apt-get update -qy
- apt-get install -y ruby git - apt-get install -y git
- gem install dpl - gem install dpl
- curl https://cli-assets.heroku.com/install.sh | sh - curl https://cli-assets.heroku.com/install.sh | sh
stages: stages:
- deploy - deploy
deploy_production: deploy_production:
stage: deploy stage: deploy
image: ruby:latest image: ruby:3.0.1
script: script:
- dpl --provider=heroku --app=$HEROKU_APP_PRODUCTION --api-key=$HEROKU_API_KEY - dpl --provider=heroku --app=$HEROKU_APP_PRODUCTION --api-key=$HEROKU_API_KEY
- heroku run bundle exec rails db:migrate --exit-code --app $HEROKU_APP_PRODUCTION - heroku run bundle exec rails db:migrate --exit-code --app $HEROKU_APP_PRODUCTION
only: only:
- master - master