From cee5a9944f0818f0f4a8dc9b4adcb7555c6ab10c Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Sat, 13 Dec 2025 22:13:41 +0000 Subject: [PATCH] made a sum --- .github/workflows/deploy-postgres.yml | 8 ++++++++ db/atlas/atlas.hcl | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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"