Monitor service done #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy-manifests | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'infra/**' | |
env: | |
PROJECT_ID: ${{ secrets.GKE_PROJECT }} | |
GKE_CLUSTER: karkaushal | |
GKE_ZONE: us-central1-c | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# this will copy all the files in the runner's pc | |
- uses: actions/checkout@v2 | |
# Setup google cloud CLI | |
- uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7 | |
with: | |
service_account_key: ${{ secrets.GKE_SA_KEY }} | |
project_id: ${{ secrets.GKE_PROJECT }} | |
# connect to Our Cluster | |
- uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e | |
with: | |
cluster_name: ${{ env.GKE_CLUSTER }} | |
location: ${{ env.GKE_ZONE }} | |
credentials: ${{ secrets.GKE_SA_KEY }} | |
- run: kubectl apply -f infra/k8s && kubectl apply -f infra/k8s-prod |