fontaipi
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
.circleci/config.yml
|
|
@ -121,14 +121,14 @@ 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 HEAD:master |
|
|
|
|
|
|
|
|
command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD: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/` \ |
|
|
|
|
|
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; \ |
|
|
|
|
|
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/` |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
workflows: |
|
|
workflows: |
|
|
|