File tree Expand file tree Collapse file tree 8 files changed +53
-10
lines changed
test/images/sample-apiserver Expand file tree Collapse file tree 8 files changed +53
-10
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,18 @@ aliases:
128
128
- justaugustus # SIG Chair
129
129
- saschagrunert # Branch Manager
130
130
- tpepper # SIG Chair / Patch Release Team
131
+ build-image-approvers:
132
+ - BenTheElder
133
+ - cblecker
134
+ - dims
135
+ - justaugustus
136
+ - listx
137
+ build-image-reviewers:
138
+ - BenTheElder
139
+ - cblecker
140
+ - dims
141
+ - justaugustus
142
+ - listx
131
143
132
144
sig-storage-reviewers:
133
145
- saad-ali
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ reviewers:
4
4
- bentheelder
5
5
- cblecker
6
6
- fejta
7
+ - justaugustus
7
8
- lavalamp
8
9
- spiffxp
9
10
approvers:
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
# This file creates a standard build environment for building Kubernetes
16
- FROM k8s .gcr.io/kube-cross:KUBE_BUILD_IMAGE_CROSS_TAG
16
+ FROM us .gcr.io/k8s-artifacts-prod/build-image /kube-cross:KUBE_BUILD_IMAGE_CROSS_TAG
17
17
18
18
# Mark this as a kube-build container
19
19
RUN touch /kube-build-image
Original file line number Diff line number Diff line change
1
+ # See the OWNERS docs at https://go.k8s.io/owners
2
+
3
+ approvers:
4
+ - build-image-approvers
5
+ reviewers:
6
+ - build-image-reviewers
7
+
8
+ labels:
9
+ - sig/release
10
+ - area/release-eng
Original file line number Diff line number Diff line change 14
14
15
15
.PHONY : build push
16
16
17
- REGISTRY? =staging-k8s. gcr.io
18
- IMAGE = $( REGISTRY ) /kube-cross
19
- TAG = $( shell cat VERSION)
17
+ STAGING_REGISTRY? = gcr.io/k8s-staging-build-image
18
+ PROD_REGISTRY? =us.gcr.io/k8s-artifacts-prod/build-image
19
+ IMAGE =kube-cross
20
20
21
+ TAG? =kubernetes-$(shell git describe --tags --match='v* ' --abbrev=14)
22
+ KUBE_CROSS_VERSION =$(shell cat VERSION)
21
23
22
- all : push
24
+ all : build push
23
25
24
26
build :
25
- docker build --pull -t $(IMAGE ) :$(TAG ) .
27
+ docker build \
28
+ -t $(STAGING_REGISTRY ) /$(IMAGE ) :$(TAG ) \
29
+ -t $(STAGING_REGISTRY ) /$(IMAGE ) :$(KUBE_CROSS_VERSION ) \
30
+ -t $(PROD_REGISTRY ) /$(IMAGE ) :$(KUBE_CROSS_VERSION ) \
31
+ .
26
32
27
- push : build
28
- docker push $(IMAGE ) :$(TAG )
33
+ push :
34
+ docker push $(STAGING_REGISTRY ) /$(IMAGE ) :$(TAG )
35
+ docker push $(STAGING_REGISTRY ) /$(IMAGE ) :$(KUBE_CROSS_VERSION )
Original file line number Diff line number Diff line change
1
+ # See https://cloud.google.com/cloud-build/docs/build-config
2
+ timeout : 1200s
3
+ options :
4
+ substitution_option : ALLOW_LOOSE
5
+ steps :
6
+ - name : ' gcr.io/k8s-testimages/gcb-docker-gcloud:v20191019-6567e5c'
7
+ entrypoint : make
8
+ env :
9
+ - DOCKER_CLI_EXPERIMENTAL=enabled
10
+ args :
11
+ - all
12
+ images :
13
+ - ' gcr.io/$PROJECT_ID/kube-cross:kubernetes-${_GIT_TAG}'
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ ARCH ?= amd64
27
27
ALL_ARCH = amd64 arm arm64 ppc64le s390x
28
28
29
29
CFLAGS = -Os -Wall -Werror -static -DVERSION=v$(TAG ) -$(REV )
30
- KUBE_CROSS_IMAGE ?= k8s .gcr.io/kube-cross
30
+ KUBE_CROSS_IMAGE ?= us .gcr.io/k8s-artifacts-prod/build-image /kube-cross
31
31
KUBE_CROSS_VERSION ?= $(shell cat ../build-image/cross/VERSION)
32
32
33
33
BIN = pause
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM k8s .gcr.io/kube-cross:v1.13.6-1 as build_k8s_1_17_sample_apiserver
15
+ FROM us .gcr.io/k8s-artifacts-prod/build-image /kube-cross:v1.13.6-1 as build_k8s_1_17_sample_apiserver
16
16
17
17
ENV GOPATH /go
18
18
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
You can’t perform that action at this time.
0 commit comments