diff --git a/.github/workflows/deploy-postgres.yml b/.github/workflows/deploy-postgres.yml index a006406..4537e45 100644 --- a/.github/workflows/deploy-postgres.yml +++ b/.github/workflows/deploy-postgres.yml @@ -72,6 +72,14 @@ jobs: ls -la pwd + - name: Install kubectl + run: | + sudo apt-get update + sudo apt-get install -y curl ca-certificates + curl -LO "https://dl.k8s.io/release/$(curl -sL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + sudo install -m 0755 kubectl /usr/local/bin/kubectl + + # Install Atlas - name: Install Atlas CLI run: | diff --git a/db/atlas/atlas.hcl b/db/atlas/atlas.hcl index faf1f37..ee3da6c 100644 --- a/db/atlas/atlas.hcl +++ b/db/atlas/atlas.hcl @@ -1,5 +1,5 @@ env "stripe_invoice_dev" { - url = "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/stripe_invoice_dev?sslmode=disable" + url = "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres.default.svc.cluster.local:5432/stripe_invoice_dev?sslmode=disable" migration { dir = "file://./db/atlas/stripe_invoice/migrations" @@ -7,7 +7,7 @@ env "stripe_invoice_dev" { } env "stripe_invoice_prod" { - url = "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/stripe_invoice_prod?sslmode=disable" + url = "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres.default.svc.cluster.local:5432/stripe_invoice_prod?sslmode=disable" migration { dir = "file://./db/atlas/stripe_invoice/migrations"