generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
23 lines (22 loc) · 866 Bytes
/
cloudbuild.yaml
File metadata and controls
23 lines (22 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
timeout: 2700s
steps:
# This step runs the python script to build and push the Docker image.
# We use the gcloud builder because it comes with python and the docker client.
- name: "gcr.io/k8s-staging-test-infra/gcb-docker-gcloud"
entrypoint: "python3"
args:
- "./dev/tools/push-images"
# Assuming the script accepts project and tag arguments.
# Using standard Cloud Build substitutions.
- "--image-prefix=${_IMAGE_PREFIX}/"
- "--extra-image-tag=${_GIT_TAG}-${_CONFIG}"
- "--extra-image-tag=latest-${_CONFIG}"
options:
enableStructuredLogging: true
# Using a more powerful machine type can speed up docker builds.
machineType: "E2_HIGHCPU_8"
substitution_option: "ALLOW_LOOSE"
substitutions:
_GIT_TAG: "12345"
_CONFIG: main
_IMAGE_PREFIX: "us-central1-docker.pkg.dev/k8s-staging-images/agent-sandbox"