Skip to content

Commit 0801029

Browse files
Bump go version to 1.22.7
1 parent 55d941f commit 0801029

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Dockerfile

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This is for CI test and should build on x86_64 environment
2-
FROM registry.access.redhat.com/ubi9/ubi:9.4-1214.1729773476 as base
2+
3+
FROM registry.access.redhat.com/ubi9/ubi:9.4-947 as base
34

45
### Pre-install dependencies
56
# These packages will end up in the final image
@@ -9,13 +10,17 @@ RUN yum --assumeyes install \
910
&& yum clean all;
1011

1112
### Build backplane-cli
12-
FROM registry.access.redhat.com/ubi9/ubi:9.4-1214.1729773476 as bp-cli-builder
13+
FROM registry.access.redhat.com/ubi9/ubi:9.4-947 as bp-cli-builder
1314

1415
RUN yum install --assumeyes \
1516
make \
1617
git \
1718
go-toolset
1819

20+
# This is a hack to install go1.22 version until ubi9 supports golang 1.22
21+
RUN go install golang.org/dl/go1.22.7@latest
22+
RUN go env -w GOTOOLCHAIN=go1.22.7+auto
23+
1924
ENV GOOS=linux GO111MODULE=on GOPROXY=https://proxy.golang.org
2025
ENV GOBIN=/gobin GOPATH=/usr/src/go CGO_ENABLED=0
2126
ENV PATH=/usr/local/go/bin/:${PATH}
@@ -33,7 +38,7 @@ RUN cp ./ocm-backplane /out
3338
RUN chmod -R +x /out
3439

3540
### Build dependencies
36-
FROM registry.access.redhat.com/ubi9/ubi:9.4-1214.1729773476 as dep-builder
41+
FROM registry.access.redhat.com/ubi9/ubi:9.4-947 as dep-builder
3742

3843
RUN yum install --assumeyes \
3944
jq \

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openshift/backplane-cli
22

3-
go 1.21
3+
go 1.22.7
44

55
require (
66
github.com/Masterminds/semver v1.5.0

0 commit comments

Comments
 (0)