From d618843ad45dc3d5f89a572115ce3bb4d148721e Mon Sep 17 00:00:00 2001 From: kranurag7 Date: Sat, 20 Apr 2024 15:42:52 +0530 Subject: [PATCH] replace ARG with ENV in builder Dockerfile I think the versions are not getting updated which are backec by ARG. This commit replaces the same with ENV so that we get automatic updates for all the components. kubectl is excluded because maybe that will be very fast upgrades multiple times a month and kubectl is pretty stable I think and we probably don't need really fast upgrades there. Signed-off-by: kranurag7 --- images/builder/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/images/builder/Dockerfile b/images/builder/Dockerfile index 31c3c7ce..1d8ccd9a 100644 --- a/images/builder/Dockerfile +++ b/images/builder/Dockerfile @@ -24,19 +24,19 @@ FROM docker.io/hadolint/hadolint:v2.12.0-alpine@sha256:7dba9a9f1a0350f6d021fb2f6 FROM cgr.dev/chainguard/wolfi-base:latest as wolfi # update: datasource=github-tags depName=kubernetes-sigs/cluster-api -ARG CLUSTERCTL_VERSION="v1.6.3" +ENV CLUSTERCTL_VERSION="v1.6.3" # update: datasource=github-tags depName=golangci/golangci-lint ENV GOLANGCI_VERSION="v1.57.2" # update: datasource=github-tags depName=kubernetes-sigs/kind -ARG KIND_VERSION="v0.22.0" +ENV KIND_VERSION="v0.22.0" # update: datasource=github-tags depName=kubernetes/kubernetes ARG KUBECTL_VERSION="v1.27.3" # update: datasource=github-tags depName=kubernetes-sigs/kustomize extractVersion=^kustomize\/v(?.+)$ -ARG KUSTOMIZE_VERSION="v5.3.0" +ENV KUSTOMIZE_VERSION="v5.3.0" # update: datasource=github-tags depName=aquasecurity/trivy -ARG TRIVY_VERSION="v0.49.1" +ENV TRIVY_VERSION="v0.49.1" # update: datasource=github-tags depName=kubernetes-sigs/controller-tools -ARG CONTROLLER_GEN_VERSION="v0.14.0" +ENV CONTROLLER_GEN_VERSION="v0.14.0" # hadolint ignore=DL3018 RUN apk add -U --no-cache \