forked from gigsmart/haiku-method
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.5 KB
/
deploy-auth-proxy.yml
File metadata and controls
47 lines (40 loc) · 1.5 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
name: Deploy Auth Proxy
on:
push:
branches: [main]
paths:
- "deploy/auth-proxy/**"
- "deploy/terraform/modules/auth-proxy/**"
workflow_dispatch: {}
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy via Terraform
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
- name: Build function source
working-directory: deploy/auth-proxy
run: |
npm ci
npm run build
- name: Authenticate to GCP
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: Terraform Init
working-directory: deploy/terraform
run: terraform init
- name: Terraform Apply
working-directory: deploy/terraform
run: terraform apply -auto-approve
env:
TF_VAR_gcp_project_id: waldrip-net
TF_VAR_domain: ${{ vars.HAIKU_DOMAIN || 'haikumethod.ai' }}
TF_VAR_enable_auth_proxy: "true"
TF_VAR_auth_proxy_allowed_origin: ${{ vars.HAIKU_AUTH_ALLOWED_ORIGIN || 'https://haikumethod.ai' }}
TF_VAR_github_oauth_client_id: ${{ vars.NEXT_PUBLIC_HAIKU_GITHUB_OAUTH_CLIENT_ID }}
TF_VAR_github_oauth_client_secret: ${{ secrets.HAIKU_GITHUB_OAUTH_CLIENT_SECRET }}
TF_VAR_gitlab_oauth_client_id: ${{ vars.NEXT_PUBLIC_HAIKU_GITLAB_OAUTH_CLIENT_ID }}
TF_VAR_gitlab_oauth_client_secret: ${{ secrets.HAIKU_GITLAB_OAUTH_CLIENT_SECRET }}
TF_VAR_enable_mcp_dns: "false"