From 6f2b54668e49630ffdb5341c7e85511d57556fc5 Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 12 Jan 2021 15:23:31 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20heroku=20automatic=20deploy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cdf22da..3e6485b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -44,6 +44,7 @@ jobs: # A basic unit of work in a run - store_artifacts: # Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ path: test-results destination: tr1 + test: docker: - image: circleci/python:3.9.1 @@ -81,12 +82,25 @@ jobs: # A basic unit of work in a run FLASK_APP: autoapp.py FLASK_DEBUG: 1 DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr + + 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: version: 2 build-test: jobs: - build - - test: - requires: + # - test: + # requires: + # - build + - heroku + requires - build \ No newline at end of file