From 2cb5ab7b2b62cd52a72c4e158168d965afe32a6c Mon Sep 17 00:00:00 2001 From: verzelea Date: Tue, 1 Dec 2020 15:22:03 +0100 Subject: [PATCH] Refactor: config --- .circleci/config.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dd8f9d1..2caafe5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,10 +121,15 @@ jobs: - checkout - run: name: Heroku Deploy - command: echo todo && false + command: git push heroku main && git push && heroku open - run: name: Smoke Test - command: echo todo && false + command: + HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://devoptpcd.herokuapp.com/` + if [ "$HTTPCODE" -ne 200 ];then + echo "heroku app not responding, failing deploy" + exit 1 + fi workflows: version: 2 @@ -140,15 +145,6 @@ workflows: - lint: requires: - build - - docker-build-and-push: - requires: - - build - - lint - - back-test-e2e - - back-test-unit - filters: - branches: - only: main - back-deploy-heroku: requires: - build