generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 75
/
cloudbuild.yaml
51 lines (51 loc) · 1.53 KB
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# See https://cloud.google.com/cloud-build/docs/build-config
options:
machineType: E2_HIGHCPU_8
steps:
- id: build-image
name: gcr.io/cloud-builders/docker
entrypoint: "/usr/bin/make"
args:
- "push-images"
- "TAG=$_GIT_TAG"
- id: clone-k8s.io
name: gcr.io/cloud-builders/git
entrypoint: git
args:
- clone
- --filter=tree:0
- https://github.com/kubernetes/k8s.io
- /k8s.io
volumes:
# make deploy assumes k8s.io will be at ./../k8s.io
# default working dir in cloudbuild is /workspace
- name: 'k8sio'
path: '/k8s.io'
# run immediately
waitFor: ['-']
- id: deploy-staging
name: "gcr.io/k8s-staging-infra-tools/k8s-infra:v20220912-7d7ed3258@sha256:48fb967be4c36da551584c3004330c7ce37568e4226ea7233eeb08c979374bc6"
entrypoint: "/usr/bin/make"
volumes:
- name: 'k8sio'
path: '/k8s.io'
args:
- "deploy"
- "TAG=$_GIT_TAG"
- "CLOUDBUILD_SET_PROJECT=k8s-infra-oci-proxy"
waitFor:
- build-image
- clone-k8s.io
# run quick e2e-tests immediately following deployment, aside from the assorted
# testgrid reported periodic results
- id: test-staging
name: "gcr.io/k8s-staging-infra-tools/k8s-infra:v20220912-7d7ed3258@sha256:48fb967be4c36da551584c3004330c7ce37568e4226ea7233eeb08c979374bc6"
entrypoint: "/usr/bin/make"
args:
- "e2e-test"
waitFor:
- deploy-staging
substitutions:
# variables set by kubernetes/test-infra/images/builder
# set by image-builder to vYYYYMMDD-hash
_GIT_TAG: "12345"