From 86e6d93ee85de2435d61f44ebde0a53082602571 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 e956fbd067..815dc4930d 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 \