forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.98 KB
/
Copy pathgcp_personas.yml
File metadata and controls
50 lines (46 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Deploy Personas to Cloud Run
on:
push:
branches: ["main", "development"]
paths:
- 'web/personas-open-source/**'
- 'config/public-build-*.json'
- '.github/actions/deploy-public-build/**'
- '.github/actions/prepare-public-build/**'
- '.github/actions/public-build-candidate-promotion/**'
- '.github/scripts/preflight_public_build_config.py'
- '.github/scripts/preflight_public_build_runtime.py'
- '.github/scripts/smoke_public_build_browser.py'
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy to'
required: false
default: 'prod'
type: choice
options: [development, prod]
concurrency:
group: deploy-cloud-run-omi-web-${{ github.event_name == 'workflow_dispatch' && github.event.inputs.environment || github.ref == 'refs/heads/development' && 'development' || github.ref == 'refs/heads/main' && 'prod' || format('nondeploy-{0}', github.run_id) }}
cancel-in-progress: false
jobs:
deploy:
environment: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.environment || (github.ref == 'refs/heads/development' && 'development') || 'prod' }}
permissions:
actions: read
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Deploy checked public-build candidate
uses: ./.github/actions/deploy-public-build
with:
target: personas
environment: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.environment || (github.ref == 'refs/heads/development' && 'development') || 'prod' }}
project_id: ${{ vars.GCP_PROJECT_ID }}
gcp_credentials: ${{ secrets.GCP_CREDENTIALS }}
network: ${{ vars.CLOUD_RUN_VPC_NETWORK }}
subnet: ${{ vars.CLOUD_RUN_VPC_SUBNET }}
runtime_env_vars: OMI_LLM_GATEWAY_URL=${{ vars.OMI_LLM_GATEWAY_URL }}
require_gateway_url: true