Browse Source

✏️ Fix steps structure

pull/3/head
anthony 5 years ago
parent
commit
d962da85d6
  1. 32
      .circleci/config.yml

32
.circleci/config.yml

@ -104,23 +104,25 @@ jobs:
deploy-heroku: deploy-heroku:
<<: *shared-config <<: *shared-config
docker:
- image: buildpack-deps:trusty
auth:
username: *dockerhub-user-id
password: *dockerhub-password
steps: steps:
- checkout
- setup_dependencies - setup_dependencies
-docker:
- image: buildpack-deps:trusty
steps:
- checkout
- run:
name: Heroku Deploy
command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:main
- run:
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
fi
- run:
name: Heroku Deploy
command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:main
- run:
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
fi
# --- Workflow definition --- # # --- Workflow definition --- #

Loading…
Cancel
Save