Skip to content

Commit 4170fc7

Browse files
Merge pull request #599 from joshbranham/gotoolchain-support
SREP-1552: Use latest 9.6 UBI tag, add support for GOTOOLCHAIN=auto
2 parents 0486806 + 3e75cc3 commit 4170fc7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ subscriber-report: ## Discover onboarding and prow status of subscribed consumer
3535

3636
.PHONY: build-image-deep
3737
build-image-deep: ## Builds the image from scratch, like appsre does. May require ALLOW_DIRTY_CHECKOUT=true if testing
38-
$(CONTAINER_ENGINE) build -t $(IMG):latest -f config/Dockerfile .
38+
$(CONTAINER_ENGINE) build --no-cache -t $(IMG):latest -f config/Dockerfile .
3939

4040
.DEFAULT_GOAL := help
4141
.PHONY: help

config/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM quay.io/konflux-ci/yq:latest AS yq
2-
FROM registry.redhat.io/ubi9:9.6-1751445649 AS builder
2+
FROM registry.redhat.io/ubi9:9.6 AS builder
33

44
ARG GOCILINT_VERSION="2.0.2"
55
ARG GOCILINT_SHA256SUM="89cc8a7810dc63b9a37900da03e37c3601caf46d42265d774e0f1a5d883d53e2"
@@ -19,7 +19,7 @@ RUN curl -L -o gh.tar.gz ${GH_LOCATION} && \
1919
tar xzf gh.tar.gz gh_${GH_VERSION}_linux_amd64/bin/gh && \
2020
mv gh_${GH_VERSION}_linux_amd64/bin/gh /usr/local/bin
2121

22-
FROM registry.redhat.io/ubi9:9.6-1751445649
22+
FROM registry.redhat.io/ubi9:9.6
2323

2424
RUN dnf -y install openssh-clients jq skopeo python3-pyyaml git go-toolset rsync && \
2525
dnf clean all && \
@@ -64,3 +64,6 @@ COPY LICENSE .
6464
# By setting a XDG_CACHE_HOME value we ensure GOCACHE works without having to customize/set it at
6565
# runtime. See https://pkg.go.dev/os#UserCacheDir
6666
ENV XDG_CACHE_HOME=/tmp
67+
68+
# Allow consumers to set a 'toolchain' Go version in their go.mod
69+
ENV GOTOOLCHAIN=auto

0 commit comments

Comments
 (0)