We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84d49cb commit ecd565dCopy full SHA for ecd565d
Dockerfile
@@ -22,8 +22,10 @@ WORKDIR /workspace
22
# Add kubectl tool
23
# Using the $ARCH in the name of the binary here ensures we don't get any cross-arch caching after this binary is downloaded.
24
ARG ARCH
25
-RUN curl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/${ARCH}/kubectl" -o kubectl-${ARCH}
26
-RUN chmod +x ./kubectl-${ARCH}
+# kubectl latest version can be retrieved by curl -L -s https://dl.k8s.io/release/stable.txt
+ARG KUBECTL_VERSION=v1.31.1
27
+RUN curl -L "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl" -o kubectl-${ARCH} && \
28
+ chmod +x ./kubectl-${ARCH}
29
30
# Copy the Go Modules manifests
31
COPY go.mod go.mod
0 commit comments