|
|
@ -107,10 +107,11 @@ jobs: |
|
|
- checkout |
|
|
- checkout |
|
|
- run: |
|
|
- run: |
|
|
name: Heroku Deploy |
|
|
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: |
|
|
- run: |
|
|
name: Smoke Test |
|
|
name: Smoke Test |
|
|
command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://agile-coast-99905.herokuapp.com/` |
|
|
|
|
|
|
|
|
command: | |
|
|
|
|
|
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://agile-coast-99905.herokuapp.com/` |
|
|
if [ "$HTTPCODE" -ne 200 ];then |
|
|
if [ "$HTTPCODE" -ne 200 ];then |
|
|
echo "heroku app not responding, failing deploy" |
|
|
echo "heroku app not responding, failing deploy" |
|
|
exit 1 |
|
|
exit 1 |
|
|
|