add missing GOTOOLCHAIN

This commit is contained in:
Benjamin Elder
2024-04-01 15:54:33 -07:00
parent 3652d39e04
commit 738f237354

View File

@@ -160,6 +160,7 @@ RUN git clone --filter=tree:0 "${CRI_TOOLS_CLONE_URL}" /cri-tools \
&& cd /cri-tools \
&& git checkout "${CRICTL_VERSION}" \
&& eval "$(gimme "${GO_VERSION}")" \
&& export GOTOOLCHAIN="go${GO_VERSION}" \
&& export GOARCH=$TARGETARCH && export CC=$(target-cc) && export CGO_ENABLED=1 \
&& make BUILD_BIN_PATH=./build crictl \
&& GOARCH=$TARGETARCH go-licenses save --save_path=/_LICENSES ./cmd/crictl