From 059202cb29e407e77de3f6fd2088cd0c25489804 Mon Sep 17 00:00:00 2001 From: epfaffinger Date: Wed, 8 Oct 2025 09:42:47 -0400 Subject: [PATCH] Moved goose install to CD --- .github/workflows/cd.yml | 5 ++++- .github/workflows/ci.yml | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index ea00182af0b..b9212b3ba5e 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -16,6 +16,9 @@ jobs: - name: Check out code uses: actions/checkout@v4 + - name: Install goose + run: go install github.com/pressly/goose/v3/cmd/goose@latest + - name: Set up Go uses: actions/setup-go@v5 with: @@ -36,7 +39,7 @@ jobs: run: gcloud builds submit --tag us-central1-docker.pkg.dev/elevated-watch-473719-n1/notely-ar-repo/notely:latest . - name: Migrate DB - run: ./scripts/migrateup.sh + run: goose -dir ./sql/schema postgres "$DATABASE_URL" up - name: Deploy to Cloud Run run: gcloud run deploy notely --image us-central1-docker.pkg.dev/elevated-watch-473719-n1/notely-ar-repo/notely:latest --region us-central1 --allow-unauthenticated --project elevated-watch-473719-n1 --max-instances=4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43e76a47127..186c40f91ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,6 @@ jobs: - name: Check out code uses: actions/checkout@v4 - - name: Install goose - run: go install github.com/pressly/goose/v3/cmd/goose@latest - - name: Set up Go uses: actions/setup-go@v5 with: