Skip to content

Merge pull request #17 from vishnumohanan404/dev #12

Merge pull request #17 from vishnumohanan404/dev

Merge pull request #17 from vishnumohanan404/dev #12

name: deploy-manifests
on:
push:
branches:
- main
paths:
- "infra/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Authenticate with Google Cloud
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.GKE_SA_KEY }}
- name: Set up Google Cloud SDK
uses: google-github-actions/setup-gcloud@v2
with:
version: "latest"
project_id: ${{ secrets.GKE_PROJECT_ID }}
- name: Install gke-gcloud-auth-plugin
run: gcloud components install gke-gcloud-auth-plugin
- name: Configure kubectl
run: gcloud container clusters get-credentials ${{secrets.GKE_CLUSTER_NAME}} --region=${{secrets.GKE_REGION}} --project=${{ secrets.GKE_PROJECT_ID }}
- run: kubectl apply -f infra/k8s && kubectl apply -f infra/k8s-prod