env variables

This commit is contained in:
Jun-te Kim 2025-12-13 22:31:57 +00:00
parent b9cb84beb3
commit 22f1469e7b

View file

@ -1,5 +1,5 @@
env "stripe_invoice_dev" { env "stripe_invoice_dev" {
url = "postgres://${env("POSTGRES_USER")}:${env("POSTGRES_PASSWORD")}@postgres.default.svc.cluster.local:5432/stripe_invoice?sslmode=disable" url = "postgres://${getenv("POSTGRES_USER")}:${getenv("POSTGRES_PASSWORD")}@postgres.default.svc.cluster.local:5432/stripe_invoice?sslmode=disable"
migration { migration {
dir = "file://./db/atlas/stripe_invoice/migrations" dir = "file://./db/atlas/stripe_invoice/migrations"
@ -7,7 +7,7 @@ env "stripe_invoice_dev" {
} }
env "stripe_invoice_prod" { env "stripe_invoice_prod" {
url = "postgres://${env("POSTGRES_USER")}:${env("POSTGRES_PASSWORD")}@postgres.default.svc.cluster.local:5432/stripe_invoice_prod?sslmode=disable" url = "postgres://${getenv("POSTGRES_USER")}:${getenv("POSTGRES_PASSWORD")}@postgres.default.svc.cluster.local:5432/stripe_invoice_prod?sslmode=disable"
migration { migration {
dir = "file://./db/atlas/stripe_invoice/migrations" dir = "file://./db/atlas/stripe_invoice/migrations"