From 8629f7ba9eabe1d37acc0087a1b8e265397e297e Mon Sep 17 00:00:00 2001 From: guidezSeb Date: Sun, 17 Jan 2021 17:39:27 +0100 Subject: [PATCH] :bug: test chemin en dur --- .circleci/config.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 595b679..aa211ce 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -64,14 +64,14 @@ jobs: name: Deploy main to heroku command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main - - run: + - run: name: Smoke test - command: | - HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles` - if [ "$HTTPCODE" -ne 200 ];then - echo "heroku app not responding, failing deploy" - exit 1 - fi + command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" curl -s -o /dev/null -w "%{http_code}" https://whispering-forest-11533.herokuapp.com/api/articles` + - run: + name: Smoke test check + command: if [[ "$HTTPCODE" -ne 200 ]];then + echo "heroku app not responding, failing to deploy" && exit 1; + fi docker-build-push: working_directory: /dockerapp docker: