Browse Source

Update config.yml

main
ndrg13 6 years ago
committed by GitHub
parent
commit
45b304f550
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      .circleci/config.yml

12
.circleci/config.yml

@ -52,6 +52,9 @@ jobs:
steps: steps:
- attach_workspace: - attach_workspace:
at: /tmp at: /tmp
- run:
name: Install netlify
command: sudo npm install netlify-cli -g
- run: - run:
name: Deploy app name: Deploy app
command: echo todo && false command: echo todo && false
@ -124,10 +127,11 @@ jobs:
command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main
- run: - run:
name: Smoke Test name: Smoke Test
command: HTTPCODE=curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/
if [[ "$HTTPCODE" -ne 200 ]]; then
echo "heroku app not responding, failing deploy" \
exit 1; \
command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/`
if [ "$HTTPCODE" -ne 200 ]
then
echo "heroku app not responding, failing deploy"
exit 1
fi fi
workflows: workflows:

Loading…
Cancel
Save