From 8052a84428d9e71618c2184707405489d19c56c2 Mon Sep 17 00:00:00 2001 From: Brian Cunnie Date: Sat, 26 Nov 2022 18:39:30 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Docker=20build=20fails=20when=20?= =?UTF-8?q?`curl`=20fails?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Our CI sometimes builds "broken" docker images because it fails downloading the proper executable (because I haven't populated the GitHub release yet). I'd like it to fail rather than publish broken images. Fixes, during `docker run -it --rm cunnie/sslip.io-dns-server`: ``` exec /usr/sbin/sslip.io-dns-server: exec format error ``` --- k8s/Dockerfile-sslip.io-dns-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/Dockerfile-sslip.io-dns-server b/k8s/Dockerfile-sslip.io-dns-server index 77504e2..60dba67 100644 --- a/k8s/Dockerfile-sslip.io-dns-server +++ b/k8s/Dockerfile-sslip.io-dns-server @@ -26,7 +26,7 @@ LABEL org.opencontainers.image.authors="Brian Cunnie " RUN dnf install -y bind-utils ARG TARGETARCH # amd64, arm64 (so I can run on AWS graviton2) -RUN curl -L https://github.com/cunnie/sslip.io/releases/download/2.6.2/sslip.io-dns-server-linux-$TARGETARCH \ +RUN curl -f -L https://github.com/cunnie/sslip.io/releases/download/2.6.2/sslip.io-dns-server-linux-$TARGETARCH \ -o /usr/sbin/sslip.io-dns-server; \ chmod 755 /usr/sbin/sslip.io-dns-server