-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (34 loc) · 1.18 KB
/
deploy.yaml
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
name: Deploy Terraform Infrastructure to GCP
on:
workflow_dispatch: # allows for manual invocation
push:
branches:
- main
- feat/deployment
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
- id: 'auth'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
- name: Configure kubectl
run: |
gcloud components install gke-gcloud-auth-plugin
gcloud config set project ${{ secrets.PROJECT_ID }}
gcloud config set compute/zone us-central1-f
gcloud container clusters get-credentials ${{ secrets.CLUSTER_NAME }}
- name: Create contacts configmap
run: kubectl apply -f deployment/k8s/configmap.yaml --namespace project-llllm
- name: 'Set up Helm'
uses: 'Azure/setup-helm@v1'
with:
version: 'v3.12.0'
- name: "Deploy Helm Chart"
run: |
helm upgrade --install project-llllm deployment/helm --create-namespace --namespace project-llllm --set secrets.openai_api_key=${{ secrets.OPENAI_API_KEY }}