Browse Source

👷 update push cmd heroku

dependabot/pip/requirements/sqlalchemy-1.3.0
lamya-rey 5 years ago
parent
commit
a8f5949cb7
  1. 11
      .circleci/config.yml

11
.circleci/config.yml

@ -2,7 +2,7 @@ version: 2
jobs: jobs:
build: build:
docker: docker:
- image: circleci/python:3.8.5
- image: circleci/python:3.9-buster-node-browsers
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
@ -19,7 +19,7 @@ jobs:
- venv - venv
test: test:
docker: docker:
- image: circleci/python:3.8.5
- image: circleci/python:3.9-buster-node-browsers
environment: environment:
DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/dbtest DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/dbtest
FLASK_APP: /home/circleci/repo/autoapp.py FLASK_APP: /home/circleci/repo/autoapp.py
@ -33,7 +33,7 @@ jobs:
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }}
key: dependencies-{{ checksum "requirements/dev.txt"}}-{{ checksum "requirements/prod.txt" }}
- run: docker container run --name flask_db_test -e POSTGRES_PASSWORD=somePwd -e POSTGRES_USER=myUsr -p 5432:5432 -d dbtest - run: docker container run --name flask_db_test -e POSTGRES_PASSWORD=somePwd -e POSTGRES_USER=myUsr -p 5432:5432 -d dbtest
- run: - run:
name: sleep 1 name: sleep 1
@ -52,11 +52,12 @@ jobs:
- image : buildpack-deps:trusty - image : buildpack-deps:trusty
steps: steps:
- checkout - checkout
staging:
- branch: main
- run: - run:
name: Heroku deploy name: Heroku deploy
command: | command: |
git config --global push.default matching
git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:main
git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git
- run: - run:
name: Smoke test name: Smoke test
command: | command: |

Loading…
Cancel
Save