From dab4b72dfcbf0c6ffddfd8428b34d24dae215acd Mon Sep 17 00:00:00 2001 From: Pierre Fontaine Date: Mon, 18 Jan 2021 09:13:19 +0100 Subject: [PATCH] :green_heart: Add environement variables for postgres docker container. --- .circleci/config.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ace88c0..d5c5b38 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,8 +2,12 @@ version: 2 jobs: build: docker: - - image: circleci/python - - image: circleci/postgres + - image: circleci/python:3.9.1 + - image: circleci/postgres:9.6.5 + environment: + POSTGRES_DB: psqluer + POSTGRES_USER: myUsr + POSTGRES_PASSWORD: somePwd working_directory: ~/repo steps: - checkout @@ -20,17 +24,10 @@ jobs: - run: name: Setup dababase environment: - POSTGRES_DB: psqluer - POSTGRES_USER: myUsr - POSTGRES_PASSWORD: somePwd DATABASE_URL: postgresql://myUsr:somePwd@localhost:5432/myUsr FLASK_DEBUG: 0 command: flask db upgrade - - - exit 1; \ - fi workflows: version: 2 build-test: