Browse Source

🍏 Fix heroku deployed branch

🍏 Fix heroku deployed branch
pull/10/head
Anthony Quéré 5 years ago
committed by GitHub
parent
commit
71e8121e5c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      .circleci/config.yml

11
.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/<<parameters.heroku-app>>.git HEAD:main
command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/<<parameters.heroku-app>>.git HEAD:<<parameters.branch>>
- 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

Loading…
Cancel
Save