Fix failures not failing

This commit is contained in:
thespad
2025-05-23 19:55:20 +01:00
parent e3ccf285d8
commit 9156249068
+3 -3
View File
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:3.20 AS buildstage FROM ghcr.io/linuxserver/baseimage-alpine:3.21 AS buildstage
ARG MOD_VERSION ARG MOD_VERSION
@@ -11,14 +11,14 @@ RUN \
| jq -r '.tag_name'); \ | jq -r '.tag_name'); \
fi && \ fi && \
if [ -z ${MOD_VERSION+x} ]; then \ if [ -z ${MOD_VERSION+x} ]; then \
echo "**** Could not fetch current bouncer version from Github ****" \ echo "**** Could not fetch current bouncer version from Github ****"; \
exit 1; \ exit 1; \
fi && \ fi && \
curl -sLo \ curl -sLo \
/root-layer/crowdsec-nginx-bouncer.tgz -L \ /root-layer/crowdsec-nginx-bouncer.tgz -L \
"https://github.com/crowdsecurity/cs-nginx-bouncer/releases/download/${MOD_VERSION}/crowdsec-nginx-bouncer.tgz" && \ "https://github.com/crowdsecurity/cs-nginx-bouncer/releases/download/${MOD_VERSION}/crowdsec-nginx-bouncer.tgz" && \
if ! tar -tzf /root-layer/crowdsec-nginx-bouncer.tgz >/dev/null 2>&1; then \ if ! tar -tzf /root-layer/crowdsec-nginx-bouncer.tgz >/dev/null 2>&1; then \
echo "**** Invalid tarball, could not download crowdsec bouncer ****" \ echo "**** Invalid tarball, could not download crowdsec bouncer ****"; \
exit 1; \ exit 1; \
fi fi