Skip to content

Commit

Permalink
ci: Adding env reading
Browse files Browse the repository at this point in the history
  • Loading branch information
bush1D3v committed Jun 18, 2024
1 parent 07c46e7 commit f487ece
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,25 @@ on:
pull_request:
branches: [ "master" ]

env:
POSTGRES_URL: ${{ secrets.BASE_URL }}
POSTGRES_USER: ${{ secrets.DB_USER }}
POSTGRES_PASSWORD: ${{ secrets.DB_PASSWORD }}
POSTGRES_PORT: ${{ secrets.HTTP_PORT }}
POSTGRES_NAME: ${{ secrets.DB_NAME }}

jobs:
build:
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:16.3
env:
POSTGRES_URL: ${{ env.POSTGRES_URL }}
POSTGRES_USER: ${{ env.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }}
POSTGRES_PORT: ${{env.POSTGRES_PORT}}
POSTGRES_NAME: ${{env.POSTGRES_NAME}}
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand Down

0 comments on commit f487ece

Please sign in to comment.