1 Commits

Author SHA1 Message Date
c8577edf0c custom ca, 7
Some checks failed
ci/woodpecker/tag/woodpecker Pipeline failed
2025-06-04 15:45:06 +02:00

View File

@ -7,7 +7,7 @@ ENV DEFECTDOJO_TOKEN=""
ARG APP_DIR=/opt/app ARG APP_DIR=/opt/app
ARG ADDITIONAL_CA_URL="x" ARG ADDITIONAL_CA_URL="x"
ARG ADDITIONAL_CA_CHECKSUM="" ARG ADDITIONAL_CA_CHECKSUM="y"
RUN \ RUN \
apk add --no-cache syft &&\ apk add --no-cache syft &&\
@ -15,6 +15,7 @@ RUN \
mkdir -p $APP_DIR &&\ mkdir -p $APP_DIR &&\
chown user:user $APP_DIR &&\ chown user:user $APP_DIR &&\
echo $ADDITIONAL_CA_URL &&\ echo $ADDITIONAL_CA_URL &&\
echo $ADDITIONAL_CA_CHECKSUM &&\
if [ "$ADDITIONAL_CA_URL" != "x" ]; then \ if [ "$ADDITIONAL_CA_URL" != "x" ]; then \
cd /usr/share/ca-certificates; \ cd /usr/share/ca-certificates; \
wget --no-check-certificate -O custom-ca.crt $ADDITIONAL_CA_URL; \ wget --no-check-certificate -O custom-ca.crt $ADDITIONAL_CA_URL; \