From 11ac033ff5d1f78609580fd1795b634c83e43511 Mon Sep 17 00:00:00 2001 From: lamya-rey <61109480+lamya-rey@users.noreply.github.com> Date: Wed, 2 Dec 2020 11:00:41 +0100 Subject: [PATCH] yaml --- .circleci/config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 539afe9..0fc5a2f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,15 +121,15 @@ jobs: - checkout - run: name: Heroku Deploy - command: git push https://git.heroku.com/$HEROKU_APP_NAME.git HEAD:main + command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master - run: name: Smoke Test 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 + if [[ "$HTTPCODE" -ne 200 ]]; then + echo "heroku app not responding, failing deploy" \ + exit 1 \ + HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/` + fi workflows: version: 2