From 82a210f47faed22f8ceb3783622f30a32e57d12b Mon Sep 17 00:00:00 2001 From: Ivan Huang <82309649+hivanyf9745@users.noreply.github.com> Date: Sun, 21 Sep 2025 20:52:41 -0400 Subject: [PATCH] Modified deploy.yml --- .github/workflows/deploy.yml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3e6781c0..8fd0bd21 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,21 +11,6 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'push' - services: - postgres: - image: postgres:15 - env: - POSTGRES_USER: ${{secrets.POSTGRES_USER}} - POSTGRES_PASSWORD: ${{secrets.POSTGRES_PASSWORD}} - POSTGRES_DB: ${{secrets.POSTGRES_DB}} - ports: - - 5432:5432 - options: >- - --health-cmd "pg_isready -U postgres" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - steps: - uses: actions/checkout@v4 @@ -38,16 +23,15 @@ jobs: - name: Install dependencies run: npm ci - - name: Setup test database + - name: Generate Prisma client env: - DATABASE_URL: ${{ vars.DATABASE_URL }} + DATABASE_URL: ${{ secrets.DATABASE_URL }} run: | npx prisma generate --schema=./prisma/schema - npx prisma db push --schema=./prisma/schema - name: Run sequence health check env: - DATABASE_URL: ${{ vars.DATABASE_URL }} + DATABASE_URL: ${{ secrets.DATABASE_URL }} run: npm run db:check deploy: @@ -112,5 +96,5 @@ jobs: - name: Verify deployment env: - DATABASE_URL: ${{ vars.DATABASE_URL }} + DATABASE_URL: ${{ secrets.DATABASE_URL }} run: npm run db:verify