This Container Builder build step runs
skaffold
for Google
Kubernetes Engine (GKE) clusters.
NOTE: This builder image is using pre-stable versions of Skaffold and is NOT RECOMMENDED for production use.
This builder is derived from the kubectl
builder
and therefore supports the same environment variables. Read the kubectl
builder
documentation to use Skaffold builder.
To run skaffold run
in your cloudbuild.yaml, include this step with the
correct Kubernetes Engine cluster name and compute zone:
steps:
- name: gcr.io/$PROJECT_ID/skaffold:alpha
args: ['run', '-f=skaffold.yaml']
env:
- 'CLOUDSDK_COMPUTE_ZONE=us-central1-a'
- 'CLOUDSDK_CONTAINER_CLUSTER=[YOUR_CLUSTER_NAME]'
To build this builder and push the resulting image to the Container Registry in your project, run the following command in this directory:
$ gcloud builds submit . --config=cloudbuild.yaml