env variables

This commit is contained in:
Jun-te Kim 2025-12-13 22:26:11 +00:00
parent 3f9cba90b8
commit 484ae7c654
2 changed files with 4 additions and 7 deletions

View file

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

View file

@ -7,8 +7,3 @@ stringData:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: averysecretpasswordPersonAppleWinter938
POSTGRES_DB: stripe_invoice
DB_USER: postgres
DB_PASSWORD: averysecretpasswordPersonAppleWinter938
DB_NAME: stripe_invoice
DB_HOST: postgres
DB_PORT: "5432"