From 6755bf05fae80bb594d2b01fe2ca7ab0f022dfed Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Fri, 25 Sep 2026 12:59:07 -0400 Subject: [PATCH] Add variables for test database --- .gitea/workflows/ci-cd.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 9131f9c..f8c0981 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -14,11 +14,11 @@ jobs: postgres: image: postgres:16-alpine env: - POSTGRES_USER: test_user - POSTGRES_PASSWORD: test_password - POSTGRES_DB: test_db + POSTGRES_USER: ${{ secrets.TEST_PG_USER }} + POSTGRES_PASSWORD: ${{ secrets.TEST_PG_PASSWORD }} + POSTGRES_DB: ${{ secrets.TEST_PG_DATABASE }} ports: - - 5433:5432 + - ${{ secrets.TEST_PG_PORT }}:5432 # Ensure Postgres is completely booted before running tests options: >- --health-cmd "pg_isready -U test_user -d test_db" @@ -48,7 +48,7 @@ jobs: working-directory: ./api run: npx dbmate up env: - DATABASE_URL: "postgres://test_user:test_password@saber.home.lan:5433/test_db?sslmode=disable" + DATABASE_URL: "postgres://${{ secrets.TEST_PG_USER }}:${{ secrets.TEST_PG_PASSWORD }}@${{ gitea.SERVER_URL }}:@{{ secrets.TEST_PG_PORT }}/${{ secrets.TEST_PG_DATABASE }}?sslmode=disable" # - name: Generate PgTyped Types # run: npm run pgtyped:compile