From 6c286e8f10e579e37c802e9dc50385dd727e69a6 Mon Sep 17 00:00:00 2001 From: Etienne Ischer Date: Thu, 6 May 2021 17:46:25 +0200 Subject: [PATCH] fix ruby version in CI --- .gitlab-ci.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10cd562..6428486 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,17 +1,17 @@ before_script: - - apt-get update -qy - - apt-get install -y ruby git - - gem install dpl - - curl https://cli-assets.heroku.com/install.sh | sh + - apt-get update -qy + - apt-get install -y git + - gem install dpl + - curl https://cli-assets.heroku.com/install.sh | sh stages: - - deploy + - deploy deploy_production: - stage: deploy - image: ruby:latest - script: - - 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 - only: - - master + stage: deploy + image: ruby:3.0.1 + script: + - 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 + only: + - master