From 8ea0048ec1ede7546f6da6921514b2bf25e142f1 Mon Sep 17 00:00:00 2001 From: Hussein Galal Date: Fri, 19 Jul 2024 22:55:36 +0300 Subject: [PATCH] Fix decompressing gh tool in Dockerfile (#6378) Signed-off-by: galal-hussein --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2e69db2029..6f449faf80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,7 @@ RUN if [ "${ARCH}" = "amd64" ] || [ "${ARCH}" = "arm64" ]; then \ fi RUN curl -sL "https://github.com/cli/cli/releases/download/v2.53.0/gh_2.53.0_linux_${ARCH}.tar.gz" | \ - tar -xzvf - -C /usr/local/bin gh_2.53.0_linux_${ARCH}/bin/gh; + tar --strip-components=2 -xzvf - -C /usr/local/bin gh_2.53.0_linux_${ARCH}/bin/gh; RUN curl -sL https://dl.k8s.io/release/$( \ curl -sL https://dl.k8s.io/release/stable.txt \