Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/gcp_models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,20 @@ env:

jobs:
deploy:
environment: ${{ (github.ref == 'refs/heads/development' && 'development') || (github.ref == 'refs/heads/main' && 'prod') }}
environment: ${{ github.event.inputs.environment }}
permissions:
contents: 'read'
id-token: 'write'

runs-on: ubuntu-latest-m
steps:
- name: Validate Environment Input
run: |
if [[ "${{ github.event.inputs.environment }}" != "development" && "${{ github.event.inputs.environment }}" != "prod" ]]; then
echo "Invalid environment: ${{ github.event.inputs.environment }}. Must be 'development' or 'prod'."
exit 1
fi

# To workaround "no space left on device" issue of GitHub-hosted runner
- name: Delete huge unnecessary tools folder
run: rm -rf /opt/hostedtoolcache
Expand Down
5 changes: 5 additions & 0 deletions backend/charts/vad/dev_omi_vad_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ env:
secretKeyRef:
name: dev-omi-backend-secrets
key: HUGGINGFACE_TOKEN
- name: ENCRYPTION_SECRET
valueFrom:
secretKeyRef:
name: dev-omi-backend-secrets
key: ENCRYPTION_SECRET

resources:
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down
5 changes: 5 additions & 0 deletions backend/charts/vad/prod_omi_vad_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ env:
secretKeyRef:
name: prod-omi-backend-secrets
key: HUGGINGFACE_TOKEN
- name: ENCRYPTION_SECRET
valueFrom:
secretKeyRef:
name: prod-omi-backend-secrets
key: ENCRYPTION_SECRET

resources:
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down