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:
- apt-get update -qy
- apt-get install -y git
- gem install dpl
- curl https://cli-assets.heroku.com/install.sh | sh
- apt-get install -y wget
stages:
- deploy
deploy_production:
deploy_validation:
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
- wget --method=POST $HOOK_val 2> /dev/null 1> /dev/null
only:
- master