Browse Source

👷 add cmd run

main
lamya-rey 5 years ago
parent
commit
20d1c43dc3
  1. 10
      .circleci/config.yml

10
.circleci/config.yml

@ -103,7 +103,15 @@ jobs:
- run: - run:
name: Heroku Deploy name: Heroku Deploy
command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git origin/main command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git origin/main
- run:
name: Smoke test
command: |
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://devops-project-back.herokuapp.com/api/articles`
if [[ "$HTTPCODE" -ne 200 ]]; then
echo "heroku app not responding, failing deploy" \
exit 1; \
fi
docker-build-and-push: docker-build-and-push:
working_directory: /dockerapp working_directory: /dockerapp
docker: docker:

Loading…
Cancel
Save