stripe-to-invoice
This commit is contained in:
parent
5145d97712
commit
b1e2a1d888
4 changed files with 6 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
env "k8s" {
|
||||
url = "postgres://$DB_USER:$DB_PASSWORD@postgres:5432/stripe_xero?sslmode=disable"
|
||||
url = "postgres://$DB_USER:$DB_PASSWORD@postgres:5432/stripe_invoice?sslmode=disable"
|
||||
migration {
|
||||
dir = "file://atlas/migrations"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ spec:
|
|||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
pg_dump stripe_xero \
|
||||
pg_dump stripe_invoice \
|
||||
| gzip \
|
||||
| aws s3 cp - s3://$S3_BUCKET/stripe_xero/$(date +%F).sql.gz
|
||||
| aws s3 cp - s3://$S3_BUCKET/stripe_invoice/$(date +%F).sql.gz
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: postgres-secret
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ type: Opaque
|
|||
stringData:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgrespassword
|
||||
POSTGRES_DB: stripe_xero
|
||||
POSTGRES_DB: stripe_invoice
|
||||
|
||||
---
|
||||
# --------------------------------------------------
|
||||
|
|
@ -28,7 +28,7 @@ spec:
|
|||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: local-storage
|
||||
hostPath:
|
||||
path: /home/kimjunte/k8s_storage/postgres/stripe_xero
|
||||
path: /home/kimjunte/k8s_storage/postgres/stripe_invoice
|
||||
|
||||
---
|
||||
# --------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ type: Opaque
|
|||
stringData:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: averysecretpasswordPersonAppleWinter938
|
||||
POSTGRES_DB: stripe_xero
|
||||
POSTGRES_DB: stripe_invoice
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue