File tree Expand file tree Collapse file tree 5 files changed +12
-26
lines changed Expand file tree Collapse file tree 5 files changed +12
-26
lines changed Original file line number Diff line number Diff line change 19
19
# Must override builder-base, not builder, since the latter is referred to later in the file and so must not be
20
20
# directly replaced. See here, and note that "stage" parameter mentioned there has been renamed to
21
21
# "build-context": https://github.com/docker/buildx/pull/904#issuecomment-1005871838
22
- FROM golang:1.24.6 -bookworm@sha256:bdc7cfd953b2701fcd95fd591ea3d788f41e4b74f21f1787b9f9843a28e72196 AS builder-base
23
- FROM builder-base AS builder
22
+ FROM golang:1.24.7 -bookworm@sha256:3ce988c30fa67dc966ca716ee0ce7ad08d7330573e808cb68ada7e419bdf23de AS builder-base
23
+ FROM --platform=$BUILDPLATFORM builder-base AS builder
24
24
25
25
ARG TARGETARCH
26
26
27
27
ENV GOPATH=/gopath/
28
28
ENV PATH=$GOPATH/bin:$PATH
29
29
30
- RUN apt-get update --fix-missing && apt-get --yes install libsystemd-dev gcc-aarch64-linux-gnu
30
+ RUN apt-get update --fix-missing && apt-get --yes install libsystemd-dev
31
31
RUN go version
32
32
33
33
COPY . /gopath/src/k8s.io/node-problem-detector/
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ DOCKER_PLATFORMS=linux/amd64,linux/arm64
29
29
PLATFORMS =$(LINUX_PLATFORMS ) windows_amd64
30
30
31
31
# VERSION is the version of the binary.
32
- VERSION? =$(shell if [ -d . git ]; then echo `git describe --tags --dirty`; else echo "UNKNOWN"; fi )
32
+ VERSION? =$(shell git describe --tags --always --dirty )
33
33
34
34
# TAG is the tag of the container image, default to binary version.
35
35
TAG? =$(VERSION )
@@ -275,10 +275,6 @@ build-in-docker: clean docker-builder
275
275
-c ' cd /gopath/src/k8s.io/node-problem-detector/ && make build-binaries'
276
276
277
277
push-container : build-container
278
- # So we can push to docker hub by setting REGISTRY
279
- ifneq (,$(findstring gcr.io,$(REGISTRY ) ) )
280
- gcloud auth configure-docker
281
- endif
282
278
# Build should be cached from build-container
283
279
docker buildx build --push --platform $(DOCKER_PLATFORMS ) -t $(IMAGE ) --build-arg LOGCOUNTER=$(LOGCOUNTER ) .
284
280
Original file line number Diff line number Diff line change @@ -5,22 +5,12 @@ timeout: 3600s
5
5
options :
6
6
# job builds a multi-arch docker image for amd64 and arm64
7
7
machineType : E2_HIGHCPU_8
8
+ substitution_option : ALLOW_LOOSE
8
9
steps :
9
- - name : ' gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20230623-56e06d7c18'
10
- entrypoint : bash
11
- env :
12
- - PROW_GIT_TAG=$_GIT_TAG
13
- - PULL_BASE_REF=$_PULL_BASE_REF
14
- - VERSION=$_PULL_BASE_REF
15
- - DOCKER_CLI_EXPERIMENTAL=enabled
10
+ - name : ' gcr.io/cloud-builders/docker'
11
+ entrypoint : make
16
12
args :
17
- - -c
18
- - |
19
- echo "Building/Pushing NPD containers"
20
- apk add musl-dev gcc
21
- make push-container
13
+ - push-container
22
14
substitutions :
23
- # _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
24
- # can be used as a substitution
25
- _GIT_TAG : ' PLACE_HOLDER'
26
- _PULL_BASE_REF : ' master'
15
+ _GIT_TAG : ' dev'
16
+ _PULL_BASE_REF : ' dev'
Original file line number Diff line number Diff line change 1
1
module k8s.io/node-problem-detector
2
2
3
- go 1.24.6
3
+ go 1.24.7
4
4
5
5
require (
6
6
cloud.google.com/go/compute/metadata v0.8.0
Original file line number Diff line number Diff line change 1
1
module k8s.io/node-problem-detector/test
2
2
3
- go 1.24.6
3
+ go 1.24.7
4
4
5
5
replace k8s.io/node-problem-detector => ../.
6
6
You can’t perform that action at this time.
0 commit comments