forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.43 KB
/
Copy pathgcp_admin.yml
File metadata and controls
40 lines (36 loc) · 1.43 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
name: Deploy Admin Dashboard to Cloud Run
on:
push:
branches: ["main", "development"]
paths:
- 'web/admin/**'
- '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:
concurrency:
group: deploy-cloud-run-omi-admin-dashboard-${{ github.ref == 'refs/heads/development' && 'development' || github.ref == 'refs/heads/main' && 'prod' || format('nondeploy-{0}', github.run_id) }}
cancel-in-progress: false
jobs:
deploy:
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development'
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: admin
environment: ${{ github.ref == 'refs/heads/development' && 'development' || 'prod' }}
project_id: ${{ vars.GCP_PROJECT_ID }}
gcp_credentials: ${{ secrets.GCP_CREDENTIALS }}