fix: force curl to fail on error
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-06-21 15:15:23 +02:00
parent 91b814058d
commit 275ee87014
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -18,9 +18,9 @@ RUN apk add --update --no-cache --virtual .build-deps libarchive-tools curl && \
mkdir -p /var/www/app && \ mkdir -p /var/www/app && \
VALIDATOR_VERSION="${VALIDATOR_VERSION##v}" && \ VALIDATOR_VERSION="${VALIDATOR_VERSION##v}" && \
echo "Installing v.Nu Validator version '${VALIDATOR_VERSION}' ..." && \ echo "Installing v.Nu Validator version '${VALIDATOR_VERSION}' ..." && \
# curl -SsL "https://github.com/validator/validator/releases/download/${VALIDATOR_VERSION}/vnu.jar_${VALIDATOR_VERSION}.zip" | \ # curl -SsfL "https://github.com/validator/validator/releases/download/${VALIDATOR_VERSION}/vnu.jar_${VALIDATOR_VERSION}.zip" | \
# bsdtar -xf - -C /var/www/app/ --strip-components=1 dist/vnu.jar && \ # bsdtar -xf - -C /var/www/app/ --strip-components=1 dist/vnu.jar && \
curl -SsL "https://github.com/validator/validator/releases/download/${VALIDATOR_VERSION}/vnu.jar" -o /var/www/app/vnu.jar | \ curl -SsfL "https://github.com/validator/validator/releases/download/${VALIDATOR_VERSION}/vnu.jar" -o /var/www/app/vnu.jar | \
apk del .build-deps && \ apk del .build-deps && \
rm -rf /var/cache/apk/* && \ rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \ rm -rf /tmp/* && \