Merge pull request #743 from bharathkkb/bharathkkb-patch-1
Updates for new google org and actions
This commit is contained in:
+7
-4
@@ -8,7 +8,7 @@
|
|||||||
#
|
#
|
||||||
# 3. Change the values for the GKE_ZONE, GKE_CLUSTER, IMAGE, and DEPLOYMENT_NAME environment variables (below).
|
# 3. Change the values for the GKE_ZONE, GKE_CLUSTER, IMAGE, and DEPLOYMENT_NAME environment variables (below).
|
||||||
#
|
#
|
||||||
# For more support on how to run the workflow, please visit https://github.com/GoogleCloudPlatform/github-actions/tree/master/example-workflows/gke
|
# For more support on how to run the workflow, please visit https://github.com/google-github-actions/setup-gcloud/tree/master/example-workflows/gke
|
||||||
|
|
||||||
name: Build and Deploy to GKE
|
name: Build and Deploy to GKE
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# Setup gcloud CLI
|
# Setup gcloud CLI
|
||||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@0.1.3
|
- uses: google-github-actions/setup-gcloud@v0.2.0
|
||||||
with:
|
with:
|
||||||
service_account_key: ${{ secrets.GKE_SA_KEY }}
|
service_account_key: ${{ secrets.GKE_SA_KEY }}
|
||||||
project_id: ${{ secrets.GKE_PROJECT }}
|
project_id: ${{ secrets.GKE_PROJECT }}
|
||||||
@@ -44,8 +44,11 @@ jobs:
|
|||||||
gcloud --quiet auth configure-docker
|
gcloud --quiet auth configure-docker
|
||||||
|
|
||||||
# Get the GKE credentials so we can deploy to the cluster
|
# Get the GKE credentials so we can deploy to the cluster
|
||||||
- run: |-
|
- uses: google-github-actions/[email protected]
|
||||||
gcloud container clusters get-credentials "$GKE_CLUSTER" --zone "$GKE_ZONE"
|
with:
|
||||||
|
cluster_name: ${{ env.GKE_CLUSTER }}
|
||||||
|
location: ${{ env.GKE_ZONE }}
|
||||||
|
credentials: ${{ secrets.GKE_SA_KEY }}
|
||||||
|
|
||||||
# Build the Docker image
|
# Build the Docker image
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
Reference in New Issue
Block a user