automatic migrations
Some checks failed
cd / Deploy (push) Failing after 6m59s

This commit is contained in:
2025-03-16 15:21:49 +02:00
parent b96cc24527
commit abf975fadb

View File

@@ -13,6 +13,9 @@ jobs:
name: Deploy name: Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -39,5 +42,11 @@ jobs:
- name: Push to Google - name: Push to Google
run: gcloud builds submit --tag us-central1-docker.pkg.dev/notely-453912/notely-ar-repo/notely:latest . run: gcloud builds submit --tag us-central1-docker.pkg.dev/notely-453912/notely-ar-repo/notely:latest .
- name: Install Goose
run: go install github.com/pressly/goose/v3/cmd/goose@latest
- name: Run migrations
run: scripts/migrateup.sh
- name: Deploy to Cloud Run - name: Deploy to Cloud Run
run: gcloud run deploy notely --image us-central1-docker.pkg.dev/notely-453912/notely-ar-repo/notely:latest --region us-central1 --allow-unauthenticated --project notely-453912 --max-instances=4 run: gcloud run deploy notely --image us-central1-docker.pkg.dev/notely-453912/notely-ar-repo/notely:latest --region us-central1 --allow-unauthenticated --project notely-453912 --max-instances=4