Skip to content

Commit 5bb91bb

Browse files
authored
Merge pull request #4 from brandond/master
Bump golang and default crictl versions
2 parents b4a8fa8 + 0bce408 commit 5bb91bb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG UBI_IMAGE=registry.access.redhat.com/ubi7/ubi-minimal:latest
2-
ARG GO_IMAGE=rancher/hardened-build-base:v1.15.8b5
2+
ARG GO_IMAGE=rancher/hardened-build-base:v1.16.7b7
33
FROM ${UBI_IMAGE} as ubi
44
FROM ${GO_IMAGE} as builder
55
# setup required packages

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ BUILD_META=-build$(shell date +%Y%m%d)
88
ORG ?= rancher
99
PKG ?= github.com/kubernetes-sigs/cri-tools
1010
SRC ?= github.com/kubernetes-sigs/cri-tools
11-
TAG ?= v1.19.0$(BUILD_META)
11+
TAG ?= v1.21.0$(BUILD_META)
1212

1313
ifneq ($(DRONE_TAG),)
1414
TAG := $(DRONE_TAG)
@@ -18,13 +18,16 @@ ifeq (,$(filter %$(BUILD_META),$(TAG)))
1818
$(error TAG needs to end with build metadata: $(BUILD_META))
1919
endif
2020

21+
GOLANG_VERSION := $(shell if echo $(TAG) | grep -qE '^v1\.(18|19|20)\.'; then echo v1.15.15b5; else echo v1.16.7b7; fi)
22+
2123
.PHONY: image-build
2224
image-build:
2325
docker build \
2426
--pull \
2527
--build-arg PKG=$(PKG) \
2628
--build-arg SRC=$(SRC) \
2729
--build-arg TAG=$(TAG:$(BUILD_META)=) \
30+
--build-arg GO_IMAGE=rancher/hardened-build-base:$(GOLANG_VERSION) \
2831
--tag $(ORG)/hardened-crictl:$(TAG) \
2932
--tag $(ORG)/hardened-crictl:$(TAG)-$(ARCH) \
3033
.

0 commit comments

Comments
 (0)