Skip to content

Commit 7cada84

Browse files
authored
Merge pull request #600 from justinsb/with_cloudbuild
Use simpler build in cloudbuild
2 parents 7854a96 + 25ba196 commit 7cada84

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

cloudbuild.yaml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,11 @@ timeout: 3600s
44
options:
55
substitution_option: ALLOW_LOOSE
66
steps:
7-
- name: 'gcr.io/cloud-builders/bazel'
8-
env:
9-
- IMAGE_REGISTRY=gcr.io
10-
- IMAGE_REPO=k8s-staging-cloud-provider-gcp
11-
- IMAGE_TAG=${_PULL_BASE_REF}
12-
args:
13-
- run
14-
- //cmd/cloud-controller-manager:publish
15-
- name: 'gcr.io/cloud-builders/bazel'
7+
- name: 'golang:1.20.8'
168
env:
17-
- IMAGE_REGISTRY=gcr.io
18-
- IMAGE_REPO=k8s-staging-cloud-provider-gcp
9+
- IMAGE_REPO=${_IMAGE_REPO}
1910
- IMAGE_TAG=${_PULL_BASE_REF}
20-
args:
21-
- run
22-
- //cmd/gcp-controller-manager:publish
11+
entrypoint: tools/push-images
2312
# build gke-exec-auth-plugin binary
2413
- name: 'gcr.io/cloud-builders/bazel'
2514
args:
@@ -138,4 +127,4 @@ steps:
138127
substitutions:
139128
_PULL_BASE_REF: 'master'
140129
_GIT_TAG: '12345'
141-
130+
_IMAGE_REPO: 'gcr.io/k8s-staging-cloud-provider-gcp'

0 commit comments

Comments
 (0)