From f632155b441822783a44f82c981e3adec6561258 Mon Sep 17 00:00:00 2001
From: Timo Furrer <tfurrer@gitlab.com>
Date: Mon, 7 Oct 2024 10:39:23 +0200
Subject: [PATCH] Remove glab asset name hack

---
 Dockerfile.debian | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/Dockerfile.debian b/Dockerfile.debian
index aa12b49..8621dd6 100644
--- a/Dockerfile.debian
+++ b/Dockerfile.debian
@@ -23,9 +23,7 @@ RUN wget https://github.com/sigstore/cosign/releases/download/v${COSIGN_VERSION}
 # NOTE: glab is not yet available in the debian apt sources
 ARG GLAB_VERSION=1.46.1
 WORKDIR /tmp
-RUN if [ "${TARGETARCH}" = "amd64" ]; then hack_glab_arch="x86_64"; else hack_glab_arch="${TARGETARCH}"; fi && \
-    echo "arch=$hack_glab_arch" && \
-    wget https://gitlab.com/gitlab-org/cli/-/releases/v${GLAB_VERSION}/downloads/glab_${GLAB_VERSION}_Linux_${hack_glab_arch}.deb && \
+RUN wget https://gitlab.com/gitlab-org/cli/-/releases/v${GLAB_VERSION}/downloads/glab_${GLAB_VERSION}_linux_${TARGETARCH}.deb && \
     dpkg -i *.deb && \
     rm -f /tmp/*.deb
 
-- 
GitLab