diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index e41a6d5..cdf7181 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -53,3 +53,4 @@ jobs: TARGET: production SESSION_SECRET: ${{ secrets.SESSION_SECRET }} DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + CICD_DB_PASSWORD: ${{ secrets.CICD_DB_PASSWORD }} diff --git a/tests_compose.yaml b/tests_compose.yaml index 9ae4781..9f56e39 100644 --- a/tests_compose.yaml +++ b/tests_compose.yaml @@ -5,7 +5,7 @@ services: image: postgres:latest environment: POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres + POSTGRES_PASSWORD: ${CICD_DB_PASSWORD} POSTGRES_DB: testdb PGPORT: 9999 ports: @@ -27,7 +27,7 @@ services: - test_db environment: - HUSKY=0 - - DATABASE_URL=postgresql://postgres:postgres@test_db:9999/testdb + - DATABASE_URL=postgresql://postgres:${CICD_DB_PASSWORD}@test_db:9999/testdb - SESSION_SECRET=secret restart: always @@ -45,7 +45,7 @@ services: - test_db environment: - HUSKY=0 - - DATABASE_URL=postgresql://postgres:postgres@test_db:9999/testdb + - DATABASE_URL=postgresql://postgres:${CICD_DB_PASSWORD}@test_db:9999/testdb - SESSION_SECRET=secret restart: always