forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
49 lines (49 loc) · 1.36 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
steps:
- name: golang:$_GO_VERSION
args:
- go
- build
- -o=/workspace/images/kubekins-e2e/kubetest
- ./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=UPGRADE_DOCKER_ARG=$_UPGRADE_DOCKER
- -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: 3.4.1
_OLD_BAZEL_VERSION: 2.2.0
_CFSSL_VERSION: R1.2
_CONFIG: master
_GIT_TAG: '12345'
_GO_VERSION: 1.13.5
_K8S_RELEASE: stable
_UPGRADE_DOCKER: 'false'
options:
substitution_option: ALLOW_LOOSE
images:
- 'gcr.io/$PROJECT_ID/kubekins-e2e:$_GIT_TAG-$_CONFIG'
- 'gcr.io/$PROJECT_ID/kubekins-e2e:latest-$_CONFIG'