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 f487ece commit e81a49a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
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 }}
POSTGRES_URL: ${{ vars.BASE_URL }}
POSTGRES_USER: ${{ vars.DB_USER }}
POSTGRES_PASSWORD: ${{ vars.DB_PASSWORD }}
POSTGRES_PORT: ${{ vars.HTTP_PORT }}
POSTGRES_NAME: ${{ vars.DB_NAME }}

jobs:
build:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:

- name: Run migrations
run: |
export DATABASE_URL=postgres://${{ secrets.DB_USER }}:${{ secrets.DB_PASSWORD }}@${{ secrets.BASE_URL }}:${{ secrets.HTTP_PORT }}/${{ secrets.DB_NAME }}
export DATABASE_URL=postgres://${{ vars.DB_USER }}:${{ vars.DB_PASSWORD }}@${{ vars.BASE_URL }}:${{ vars.HTTP_PORT }}/${{ vars.DB_NAME }}
diesel migration run
- name: Build
Expand Down

0 comments on commit e81a49a

Please sign in to comment.