From 28d69a392a25fb1930fb97b1a1938cffa754623b Mon Sep 17 00:00:00 2001 From: MTLantoine Date: Tue, 1 Dec 2020 16:07:43 +0100 Subject: [PATCH] try --- .circleci/config.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index db7bbda..c599035 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -27,6 +27,13 @@ jobs: - run: name: "Setup custom environment variables" command: echo 'export HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/`' + - deploy: + name: run a failing deploy + command: | + if [[ "$HTTPCODE" -ne 200 ]]; then + echo "heroku app not responding, failing deploy" \ + exit 1 \ + fi lint: docker: - image: circleci/node:dubnium-browsers