diff --git a/deploy/webhook/cloudbuild.yaml b/deploy/webhook/cloudbuild.yaml index eb98d801f3a..87d18281f3c 100644 --- a/deploy/webhook/cloudbuild.yaml +++ b/deploy/webhook/cloudbuild.yaml @@ -1,4 +1,16 @@ steps: +# Get cluster credentials +- name: gcr.io/k8s-skaffold/skaffold:v0.16.0 + args: + - 'gcloud' + - 'container' + - 'clusters' + - 'get-credentials' + - 'docs' + - '--zone' + - 'us-west2-a' + - '--project' + - 'k8s-skaffold' # Build and push the image with the :commit_sha tag - name: gcr.io/k8s-skaffold/skaffold:v0.16.0 args: