diff --git a/.circleci/config.yml b/.circleci/config.yml index c58ff34..e83eecc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -118,6 +118,9 @@ jobs: heroku-app: default: "" type: string + branch: + default: "main" + type: string docker: - image: buildpack-deps:trusty auth: @@ -127,7 +130,7 @@ jobs: - setup_dependencies - run: name: Heroku Deploy - command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/<>.git HEAD:main + command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/<>.git HEAD:<> - run: name: Smoke Test command: | @@ -155,6 +158,7 @@ workflows: requires: - build - docker-build: + name: docker-build-prod tags: "latest $CIRCLE_BUILD_NUM" requires: - test @@ -166,6 +170,7 @@ workflows: - main - docker-build: + name: docker-build-dev tags: "dev $CIRCLE_BUILD_NUM-dev" requires: - test @@ -177,7 +182,9 @@ workflows: - develop - deploy-heroku: + name: heroku-deploy-prod heroku-app: *heroku-app-main + branch: main requires: - test - test-e2e @@ -187,7 +194,9 @@ workflows: only: - main - deploy-heroku: + name: heroku-deploy-dev heroku-app: *heroku-app-dev + branch: develop requires: - test - test-e2e