From da05aeac9b82dce50f5cae123f0e5d5aa0e55058 Mon Sep 17 00:00:00 2001 From: Francois Lannoy Date: Sun, 10 Jan 2021 13:58:54 +0100 Subject: [PATCH] :construction_worker: added heroku deploy --- .circleci/config.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 052273a..d934f30 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -75,7 +75,15 @@ jobs: docker tag $IMAGE_NAME:app $IMAGE_NAME:latest docker push $IMAGE_NAME:$CIRCLE_BUILD_NUM docker push $IMAGE_NAME:latest - + deploy_heroku: + 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 main workflows: @@ -103,3 +111,14 @@ workflows: branches: only: - main + - deploy_heroku: + requires: + # - test + - build + context: + - back_final + filters: + branches: + only: + - main +