Browse Source

test curl dans yml

main
Morgan Lombard 6 years ago
parent
commit
c73828ebd2
  1. 13
      .circleci/config.yml

13
.circleci/config.yml

@ -1,6 +1,4 @@
version: 2
orbs:
heroku: circleci/heroku@0.0.10
jobs:
build:
docker:
@ -123,10 +121,15 @@ jobs:
- checkout
- run:
name: Heroku Deploy
command: echo todo && false
command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:main
- run:
name: Smoke Test
command: echo todo && false
command: |-
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/`
if [ "$HTTPCODE" -ne 200 ];then
echo "heroku app not responding, failing deploy"
exit 1
fi
workflows:
version: 2
@ -151,7 +154,7 @@ workflows:
filters:
branches:
only: main
- heroku/deploy-via-git:
- back-deploy-heroku:
requires:
- build
- lint

Loading…
Cancel
Save