From 37921c2cfe3a2df44ff2362933127f775afd738d Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 17 Jan 2021 18:04:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20fix=20db=20connection=204?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 421a6ae..29419e9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,11 +9,18 @@ jobs: # A basic unit of work in a run auth: username: $DOCKERHUB_USERNAME password: $DOCKERHUB_PASSWORD # context / project UI env-var reference + environment: # environment variables for primary container + PIPENV_VENV_IN_PROJECT: true + DATABASE_URL: postgresql://root@localhost/circle_test?sslmode=disable # CircleCI PostgreSQL images available at: https://hub.docker.com/r/circleci/postgres/ - image: circleci/postgres:9.6.9-alpine auth: username: $DOCKERHUB_USERNAME password: $DOCKERHUB_PASSWORD # context / project UI env-var reference + environment: # environment variables for the Postgres container. + POSTGRES_USER: circle_test + POSTGRES_PASSOWRD: pwd + POSTGRES_DB: circle_test steps: # steps that comprise the `build` job - checkout # check out source code to working directory # - run: sudo chown -R circleci:circleci /usr/local/bin @@ -44,9 +51,9 @@ jobs: # A basic unit of work in a run - image: circleci/python:3.9.1 - image: circleci/postgres:9.6.5 environment: - POSTGRES_USER: myUsr - POSTGRES_PASSOWRD: somePwd - POSTGRES_DB: myUsr + POSTGRES_USER: circle_test + POSTGRES_PASSOWRD: pwd + POSTGRES_DB: circle_test steps: - checkout @@ -64,7 +71,7 @@ jobs: # A basic unit of work in a run CONDUIT_SECRET: $CONDUIT_SECRET FLASK_APP: autoapp.py FLASK_DEBUG: 1 - DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr + DATABASE_URL: postgresql://circle_test:pwd@localhost:5432/circle_test # - run: # name: flask test # command: |