Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down