iam_auth: remove task_name in claim #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy oidc-discovery-server | |
on: | |
push: | |
# Only on pushes to the master branch | |
branches: [master, mahdi/creds-passthrough] | |
# Only run if function code or the ci config itself has changed | |
paths: | |
- crates/oidc-discovery-server/** | |
- .github/workflows/deploy-oidc-discovery-server.yaml | |
env: | |
CARGO_INCREMENTAL: 0 # Faster from-scratch builds. | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
permissions: | |
# Permissions required of the Github token in order for | |
# federated identity and authorization to work. | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
lfs: true | |
- uses: supabase/setup-cli@v1 | |
- run: supabase start | |
- name: Build `oidc-discovery-server` | |
run: cargo build --release -p oidc-discovery-server | |
- run: mv target/release/oidc-discovery-server crates/oidc-discovery-server/ | |
- name: Authenticate with GCP Workload Identity Federation | |
uses: google-github-actions/auth@v2 | |
with: | |
service_account: [email protected] | |
workload_identity_provider: projects/1084703453822/locations/global/workloadIdentityPools/github-actions/providers/github-actions-provider | |
- name: Deploy Cloud Run service `oidc-discovery-server` | |
uses: google-github-actions/deploy-cloudrun@v2 | |
with: | |
service: oidc-discovery-server | |
project_id: estuary-control | |
region: us-central1 | |
source: crates/oidc-discovery-server/ | |
port: 8080 | |
flags: --clear-base-image | |
env_vars: |- | |
DATABASE_CA=/etc/db-ca.crt | |
DATABASE_URL=postgresql://[email protected]:5432/postgres | |
NO_COLOR=1 | |
secrets: |- | |
CONTROL_PLANE_DB_CA_CERT=CONTROL_PLANE_DB_CA_CERT:latest | |
PGPASSWORD=POSTGRES_PASSWORD:latest | |
env_vars_update_strategy: overwrite | |
secrets_update_strategy: overwrite |