From 7464daeaa505241ac4bd94557f90fa24fa616cf3 Mon Sep 17 00:00:00 2001 From: Alexandre SOARES <72209227+AS-37@users.noreply.github.com> Date: Mon, 18 Oct 2021 11:22:16 +0200 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 08c83bc..6c29b75 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -107,14 +107,15 @@ jobs: - checkout - run: name: Heroku Deploy - command: git push https://heroku:64529f3a-ee24-4cea-91d8-deaed3a800db@git.heroku.com/agile-coast-99905.git HEAD:master + command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/agile-coast-99905.git HEAD:master - run: name: Smoke Test - command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://agile-coast-99905.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://agile-coast-99905.herokuapp.com/` + if [ "$HTTPCODE" -ne 200 ];then + echo "heroku app not responding, failing deploy" + exit 1 + fi workflows: version: 2