update CI to use gestion hook
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user