Skip to content

Commit

Permalink
Put env in yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanderneut committed Mar 8, 2024
1 parent 0cf2daf commit cd64872
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
output_location: '.output/public' # Built app content directory - optional
###### End of Repository/Build Configurations ######
- name: Run Prisma migrations
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: npx prisma migrate deploy

close_pull_request_job:
Expand Down
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ generator client {

datasource db {
provider = "mysql"
url = "mysql://tafeltennistoernooi:mypassword@tafeltennistoernooiplanner-mysql.mysql.database.azure.com:3306/tafeltennistoernooi"
url = env("DATABASE_URL")
}

model attendee {
Expand Down

0 comments on commit cd64872

Please sign in to comment.