github.com/GoogleContainerTools/skaffold@v1.39.18/deploy/webhook/cloudbuild.yaml (about) 1 steps: 2 3 # Download the latest version of the docs-controller image 4 - name: gcr.io/cloud-builders/docker 5 entrypoint: 'bash' 6 args: 7 - '-c' 8 - | 9 docker pull gcr.io/$PROJECT_ID/docs-controller:latest || exit 0 10 # until https://github.com/GoogleCloudPlatform/cloud-builders/issues/253 is fixed 11 12 # Get cluster credentials 13 - name: gcr.io/k8s-skaffold/skaffold:v0.18.0 14 args: 15 - 'gcloud' 16 - 'container' 17 - 'clusters' 18 - 'get-credentials' 19 - 'docs' 20 - '--zone' 21 - 'us-west2-a' 22 - '--project' 23 - 'k8s-skaffold' 24 # Build and push the image with the :commit_sha tag 25 - name: gcr.io/k8s-skaffold/skaffold:v0.18.0 26 args: 27 - 'skaffold' 28 - '-f' 29 - 'deploy/webhook/skaffold.yaml' 30 - 'run' 31 - '--tag' 32 - '${COMMIT_SHA}'