From e2abff3e82100d5a76f83a1408d0c000fe197819 Mon Sep 17 00:00:00 2001 From: Quan TRAN Date: Sun, 4 Feb 2024 01:13:02 +0100 Subject: [PATCH] disable version check for sops while building container image (#1320) * disable version check for sops while building container image Signed-off-by: Quan TRAN Signed-off-by: yxxhero --- Dockerfile | 2 +- Dockerfile.debian-stable-slim | 2 +- Dockerfile.ubuntu | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b35d28ab..660a7888 100644 --- a/Dockerfile +++ b/Dockerfile @@ -83,7 +83,7 @@ RUN set -x && \ curl --retry 5 --retry-connrefused -LO "https://github.com/getsops/sops/releases/download/${SOPS_VERSION}/${SOPS_FILENAME}" && \ chmod +x "${SOPS_FILENAME}" && \ mv "${SOPS_FILENAME}" /usr/local/bin/sops && \ - sops --version | grep -E "^sops ${SOPS_VERSION#v}" + sops --version --disable-version-check | grep -E "^sops ${SOPS_VERSION#v}" ENV AGE_VERSION="v1.1.1" ARG AGE_FILENAME="age-${AGE_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz" diff --git a/Dockerfile.debian-stable-slim b/Dockerfile.debian-stable-slim index d856175c..0bdab9c1 100644 --- a/Dockerfile.debian-stable-slim +++ b/Dockerfile.debian-stable-slim @@ -88,7 +88,7 @@ RUN set -x && \ curl --retry 5 --retry-connrefused -LO "https://github.com/getsops/sops/releases/download/${SOPS_VERSION}/${SOPS_FILENAME}" && \ chmod +x "${SOPS_FILENAME}" && \ mv "${SOPS_FILENAME}" /usr/local/bin/sops && \ - sops --version | grep -E "^sops ${SOPS_VERSION#v}" + sops --version --disable-version-check | grep -E "^sops ${SOPS_VERSION#v}" ENV AGE_VERSION="v1.1.1" ARG AGE_FILENAME="age-${AGE_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz" diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu index cfbeb0c1..e2fff81f 100644 --- a/Dockerfile.ubuntu +++ b/Dockerfile.ubuntu @@ -88,7 +88,7 @@ RUN set -x && \ curl --retry 5 --retry-connrefused -LO "https://github.com/getsops/sops/releases/download/${SOPS_VERSION}/${SOPS_FILENAME}" && \ chmod +x "${SOPS_FILENAME}" && \ mv "${SOPS_FILENAME}" /usr/local/bin/sops && \ - sops --version | grep -E "^sops ${SOPS_VERSION#v}" + sops --version --disable-version-check | grep -E "^sops ${SOPS_VERSION#v}" ENV AGE_VERSION="v1.1.1" ARG AGE_FILENAME="age-${AGE_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz"