From 967911f203cc519039028671fca79c8a2eded6c7 Mon Sep 17 00:00:00 2001 From: Logan Date: Wed, 2 Dec 2020 13:33:54 +0100 Subject: [PATCH] :/ --- .circleci/config.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ed8227b..09f8ec4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,11 +121,15 @@ jobs: - checkout - run: name: Heroku Deploy - command: git push https://heroku:830872a7-1ed3-4b23-b574-559b05788911@git.heroku.com/nameless-woodland-24979.git HEAD:main + command: git push https://heroku:$HEROKU_API_KEY830872a7-1ed3-4b23-b574-559b05788911@git.heroku.com/nameless-woodland-24979.git HEAD:main - run: name: Smoke Test - command: | - HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://nameless-woodland-24979.herokuapp.com/` 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}" https://nameless-woodland-24979.herokuapp.com/ + if [[ "$HTTPCODE" -ne 200 ]]; then + echo "heroku app not responding, failing deploy" \ + exit 1; \ + fi workflows: version: 2