Skip to content

Commit 8d742de

Browse files
committed
update readme
1 parent 17d72b9 commit 8d742de

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

‎README.md‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,26 @@ Supabase migrations are in `supabase/migrations/`. Current schema includes:
8686
- **Database**: Migrations deployed via GitHub Actions (see `.github/workflows/supabase-deploy-migrations.yaml`)
8787

8888
The command to deploy is:
89-
```
89+
90+
```bash
9091
# Set the variables
91-
export PROJECT_ID=goat-together
92-
export REGION=eu-west1
93-
export SERVICE_NAME=goattogether-api
92+
export PROJECT_ID=
93+
export REGION=us-east1
94+
export SERVICE_NAME=
9495

9596
# Get the project number
9697
PROJECT_NUMBER=$(gcloud projects describe $PROJECT_ID --format="value(projectNumber)")
9798

99+
# Give the deployment service account access to the secrets
100+
gcloud projects add-iam-policy-binding $PROJECT_NUMBER \
101+
--member="serviceAccount:$PROJECT_NUMBER-compute@developer.gserviceaccount.com" \
102+
--role="roles/secretmanager.secretAccessor"
103+
98104
# Deploy to Cloud Run
99105
gcloud run deploy $SERVICE_NAME \
100106
--source . \
101107
--region=$REGION \
102108
--project=$PROJECT_ID \
103-
--allow-unauthenticated
109+
--allow-unauthenticated \
110+
--service-account="$PROJECT_NUMBER-compute@developer.gserviceaccount.com"
104111
```

0 commit comments

Comments
 (0)