-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Task
Set up GitHub secrets needed for automatic Cloud Run deployment in PR #55.
Required Secrets
Add these to the repository settings (Settings > Secrets and variables > Actions):
-
GCP_WORKLOAD_IDENTITY_PROVIDER
- Format:
projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_NAME/providers/PROVIDER_NAME - Or use service account key approach (see alternative below)
- Format:
-
GCP_SERVICE_ACCOUNT
- Service account email with these roles:
- Cloud Run Admin
- Artifact Registry Writer
- Service Account User
- Service account email with these roles:
-
GCP_PROJECT_ID
- The GCP project ID (from Cloud Run URL:
578039519715)
- The GCP project ID (from Cloud Run URL:
Setup Steps
Option A: Workload Identity Federation (recommended)
- Create a Workload Identity Pool for GitHub Actions
- Create a provider in the pool for this repo
- Grant the service account
roles/iam.workloadIdentityUserfor the pool
Option B: Service Account Key (simpler)
- Create a service account with the roles above
- Generate a JSON key
- Add the entire JSON as
GCP_SERVICE_ACCOUNT_KEYsecret - Update
.github/workflows/deploy.ymlto use key-based auth instead
Also Needed
- Create Artifact Registry repository
givecalcineurope-west1if not exists:gcloud artifacts repositories create givecalc \ --repository-format=docker \ --location=europe-west1
Reference
- PR Add federal/state tax breakdown table to results #55 adds the deployment workflow
- Current Cloud Run service: https://givecalc-578039519715.europe-west1.run.app/
Metadata
Metadata
Assignees
Labels
No labels