diff --git a/Dockerfile.debian b/Dockerfile.debian
index aa12b49c1f085edd6fb7cbf7a7faafa17f622950..8621dd6a66a086e7f7f13ba845d0c0f4f522ee84 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