forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
57 lines (57 loc) · 1.65 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
52
53
54
55
56
57
steps:
- name: golang:latest
args:
- go
- build
- -o=/workspace/images/kubekins-e2e/kubetest
- -ldflags=-X=main.gitTag=$_GIT_TAG
- ./kubetest/
env:
- CGO_ENABLED=0
- GOOS=linux
- GOARCH=amd64
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
- GOSUMDB=sum.golang.org
- name: gcr.io/cloud-builders/docker
args:
- build
- --tag=gcr.io/$PROJECT_ID/kubekins-e2e:$_GIT_TAG-$_CONFIG
- --build-arg=BAZEL_VERSION_ARG=$_BAZEL_VERSION
- --build-arg=CFSSL_VERSION=$_CFSSL_VERSION
- --build-arg=GO_VERSION=$_GO_VERSION
- --build-arg=IMAGE_ARG=gcr.io/$PROJECT_ID/kubekins-e2e:$_GIT_TAG-$_CONFIG
- --build-arg=K8S_RELEASE=$_K8S_RELEASE
- --build-arg=OLD_BAZEL_VERSION=$_OLD_BAZEL_VERSION
- --build-arg=KIND_VERSION=$_KIND_VERSION
- --build-arg=KUBETEST2_VERSION=$_KUBETEST2_VERSION
- --build-arg=YQ_VERSION=$_YQ_VERSION
- -f
- images/kubekins-e2e/Dockerfile
- .
dir: .
- name: gcr.io/cloud-builders/docker
args:
- tag
- gcr.io/$PROJECT_ID/kubekins-e2e:$_GIT_TAG-$_CONFIG
- gcr.io/$PROJECT_ID/kubekins-e2e:latest-$_CONFIG
dir: .
substitutions:
_BAZEL_VERSION: 5.2.0
_OLD_BAZEL_VERSION: 3.4.1
_CFSSL_VERSION: R1.2
_CONFIG: master
_GIT_TAG: '12345'
_GO_VERSION: 1.13.5
_K8S_RELEASE: stable
_KIND_VERSION: ''
_KUBETEST2_VERSION: 'master'
_YQ_VERSION: v4.23.1
timeout: 7200s
options:
substitution_option: ALLOW_LOOSE
# this is a large and critical CI image, builds are slow on the default 1 core
machineType: E2_HIGHCPU_32
images:
- 'gcr.io/$PROJECT_ID/kubekins-e2e:$_GIT_TAG-$_CONFIG'
- 'gcr.io/$PROJECT_ID/kubekins-e2e:latest-$_CONFIG'