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 version: 2
orbs:
heroku: circleci/heroku@0.0.10
jobs: jobs:
build: build:
docker: docker:
@ -123,10 +121,15 @@ jobs:
- checkout - checkout
- run: - run:
name: Heroku Deploy 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: - run:
name: Smoke Test 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: workflows:
version: 2 version: 2
@ -151,7 +154,7 @@ workflows:
filters: filters:
branches: branches:
only: main only: main
- heroku/deploy-via-git:
- back-deploy-heroku:
requires: requires:
- build - build
- lint - lint

Loading…
Cancel
Save