fix: temp switch to latest release (#53)
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2022-05-23 22:24:55 +02:00
parent fec6f188bf
commit 074c95061e
1 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/vnu
ARG BUILD_VERSION
# renovate: datasource=github-releases depName=validator/validator
ENV VALIDATOR_VERSION="${BUILD_VERSION:-20.6.30}"
ENV VALIDATOR_VERSION="${BUILD_VERSION:-latest}"
ADD overlay/ /
@ -18,8 +18,9 @@ RUN apk add --update --no-cache --virtual .build-deps libarchive-tools curl && \
mkdir -p /var/www/app && \
VALIDATOR_VERSION="${VALIDATOR_VERSION##v}" && \
echo "Installing v.Nu Validator version '${VALIDATOR_VERSION}' ..." && \
curl -SsL "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 && \
# curl -SsL "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 && \
curl -SsL "https://github.com/validator/validator/releases/download/${VALIDATOR_VERSION}/vnu.jar" -o /var/www/app/vnu.jar | \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \