Skip to content

Commit 3c338a3

Browse files
authored
chore: install Go 1.25.7 (#1596)
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
1 parent e5db1b6 commit 3c338a3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.ci/oci.Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,20 @@
1515

1616
FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.24-openshift-4.20
1717

18+
ENV GO_VERSION=1.25.7
19+
ENV GOROOT=/usr/local/go
20+
ENV PATH=$GOROOT/bin:$PATH
21+
1822
SHELL ["/bin/bash", "-c"]
1923

24+
# Install Go 1.25.7 to satisfy go.mod toolchain requirement (go 1.25.0)
25+
RUN export ARCH="$(uname -m)" && if [[ ${ARCH} == "x86_64" ]]; then export ARCH="amd64"; elif [[ ${ARCH} == "aarch64" ]]; then export ARCH="arm64"; fi && \
26+
curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-${ARCH}.tar.gz" -o go.tar.gz && \
27+
rm -rf /usr/local/go && \
28+
tar -C /usr/local -xzf go.tar.gz && \
29+
rm go.tar.gz
30+
RUN go version
31+
2032
# Temporary workaround since mirror.centos.org is down and can be replaced with vault.centos.org
2133
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
2234

0 commit comments

Comments
 (0)