|
|
@ -121,11 +121,11 @@ jobs: |
|
|
- checkout |
|
|
- checkout |
|
|
- run: |
|
|
- run: |
|
|
name: Heroku Deploy |
|
|
name: Heroku Deploy |
|
|
command: git push https://heroku/$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main |
|
|
|
|
|
|
|
|
command: git push https://heroku/a23fc7f2-9b0e-4353-b5b2-2be01d2978fd@git.heroku.com/fast-hollows-96925.git main |
|
|
- run: |
|
|
- run: |
|
|
name: Smoke Test |
|
|
name: Smoke Test |
|
|
command: | |
|
|
command: | |
|
|
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/` |
|
|
|
|
|
|
|
|
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://fast-hollows-96925.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 |
|
|
@ -166,6 +166,8 @@ workflows: |
|
|
branches: |
|
|
branches: |
|
|
only: main |
|
|
only: main |
|
|
- server-doc-deploy: |
|
|
- server-doc-deploy: |
|
|
|
|
|
context: |
|
|
|
|
|
- HEROKU |
|
|
requires: |
|
|
requires: |
|
|
- server-doc-build |
|
|
- server-doc-build |
|
|
filters: |
|
|
filters: |
|
|
|