Skip to content

Commit

Permalink
Merge branch 'master' into wihl/open-source-rewording
Browse files Browse the repository at this point in the history
  • Loading branch information
aeluce authored Dec 10, 2024
2 parents 5bc48aa + 5a98f9f commit 3f1c743
Show file tree
Hide file tree
Showing 404 changed files with 26,390 additions and 13,174 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dekaf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
- "Cargo.lock"

jobs:
build-and-test:
runs-on: ubuntu-latest
build-dekaf:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/deploy-agent-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Deploy agent-api

on:
workflow_dispatch: {}

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 `agent`
run: cargo build --release -p agent

- run: mv target/release/agent crates/agent/

- 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: Update Cloud Run service `agent-api`
uses: google-github-actions/deploy-cloudrun@v2
with:
service: agent-api
project_id: estuary-control
region: us-central1
source: crates/agent/
timeout: 10m

env_vars: |-
BUILDS_ROOT=gs://estuary-control/builds/
DATABASE_CA=/etc/db-ca.crt
DATABASE_URL=postgresql://[email protected]:5432/postgres
NO_COLOR=1
secrets: |-
PGPASSWORD=POSTGRES_PASSWORD:latest
CONTROL_PLANE_DB_CA_CERT=CONTROL_PLANE_DB_CA_CERT:latest
env_vars_update_strategy: overwrite
secrets_update_strategy: overwrite
61 changes: 61 additions & 0 deletions .github/workflows/deploy-data-plane-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Deploy data-plane-controller

on:
workflow_dispatch: {}

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 `data-plane-controller`
run: cargo build --release -p data-plane-controller

- run: mv target/release/data-plane-controller crates/data-plane-controller/

- 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: Update Cloud Run job `data-plane-controller`
uses: google-github-actions/deploy-cloudrun@v2
with:
job: data-plane-controller
project_id: estuary-control
region: us-central1
source: crates/data-plane-controller/
timeout: 2h # Self-cancels after 1 hour, with 1 hour grace period.

env_vars: |-
DPC_DATABASE_CA=/etc/db-ca.crt
DPC_DATABASE_URL=postgresql://[email protected]:5432/postgres
NO_COLOR=1
secrets: |-
CONTROL_PLANE_DB_CA_CERT=CONTROL_PLANE_DB_CA_CERT:latest
DPC_GITHUB_SSH_KEY=DPC_GITHUB_SSH_KEY:latest
DPC_IAM_CREDENTIALS=DPC_IAM_CREDENTIALS:latest
DPC_SERVICE_ACCOUNT=DPC_SERVICE_ACCOUNT:latest
PGPASSWORD=POSTGRES_PASSWORD:latest
VULTR_API_KEY=DPC_VULTR_API_KEY:latest
env_vars_update_strategy: overwrite
secrets_update_strategy: overwrite
3 changes: 3 additions & 0 deletions .github/workflows/flowctl-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
# Linux build steps:
- name: Build Linux
if: matrix.config.os == 'ubuntu-20.04'
env:
CC: clang
CXX: clang++
run: |-
cargo build -p flowctl --release && mv target/release/flowctl ${ASSET_NAME}
Expand Down
Loading

0 comments on commit 3f1c743

Please sign in to comment.