From b2076c2d630bb0c6cdf42a557736c9b4727d27d2 Mon Sep 17 00:00:00 2001 From: Chiara Date: Thu, 3 Dec 2020 02:21:42 +0100 Subject: [PATCH] :sparkles: : add heroku --- .circleci/config.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dd8f9d1..4486088 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,10 +121,14 @@ jobs: - checkout - run: name: Heroku Deploy - command: echo todo && false + command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/fathomless-refuge-91687.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