From 754520e2b65594fc7e867fc04127ebc0d11b7ff3 Mon Sep 17 00:00:00 2001 From: anthony Date: Mon, 18 Oct 2021 10:31:06 +0200 Subject: [PATCH] Add heroku deployment --- .circleci/config.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d643387..fc5a743 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -107,10 +107,15 @@ jobs: - checkout - run: 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: 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