Skip to content

Commit

Permalink
Merge pull request #132 from DSC-McMaster-U/ausbennett-k8s-workflow
Browse files Browse the repository at this point in the history
Create kubernetes.yml
  • Loading branch information
rawanmahdi authored Nov 18, 2023
2 parents 7442d51 + 48b030c commit 85519e3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/kubernetes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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: Get GKE credentials
run: |
gcloud container clusters get-credentials automl-cluster --region us-east1 --project automateml
- name: Deploy to GKE
run: |
kubectl apply -f cloud-infra/k8s/

0 comments on commit 85519e3

Please sign in to comment.