update CI to use gestion hook

This commit is contained in:
2021-08-13 18:14:26 +02:00
parent 70d698d433
commit 7350e3760b

View File

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