-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (29 loc) · 990 Bytes
/
kubernetes.yml
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
name: "Provision K8s manifests"
on:
workflow_dispatch:
jobs:
kubernetes:
name: "Provision K8s manifests"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Google Cloud SDK
uses: google-github-actions/setup-gcloud@v1
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.OWNER_SA_KEY }}
- name: Setup GKE Auth
uses: simenandre/setup-gke-gcloud-auth-plugin@v1
- name: Get GKE Credentials
uses: google-github-actions/get-gke-credentials@v1
with:
cluster_name: automl-cluster
location: us-east1-b
# - name: Get GKE credentials
# run: |
# gcloud container clusters get-credentials automl-cluster --region us-east1-b --project automateml
- name: Deploy to GKE
run: |
kubectl apply -f cloud-infra/k8s/