From 3ba10f3022c4068e962c1705b0e3d7a9d645ba0c Mon Sep 17 00:00:00 2001 From: nhyatt Date: Mon, 15 May 2023 09:04:08 -0500 Subject: [PATCH] Use the correct cert silly..... --- build-alpine.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-alpine.jenkins b/build-alpine.jenkins index 086a420..befb371 100644 --- a/build-alpine.jenkins +++ b/build-alpine.jenkins @@ -40,14 +40,14 @@ LABEL org.opencontainers.image.title="alpine" COPY test-chamber-13.lan.root.crt /usr/local/share/ca-certificates/ -RUN cat /usr/local/share/ca-certificates/test-chamber-13.lan.root.crt >> /etc/ssl/certs/ca-certificates.crt && \\ - sed -i 's/dl-cdn.alpinelinux.org/nexus.c.test-chamber-13.lan\\/repository/g' /etc/apk/repositories && \\ +RUN set -eux && \\ apk add --no-cache --virtual=.packagecache ca-certificates && \\ update-ca-certificates --fresh && \\ apk del .packagecache && \\ + sed -i 's/dl-cdn.alpinelinux.org/nexus.c.test-chamber-13.lan\\/repository/g' /etc/apk/repositories && \\ apk --no-cache upgrade """ - writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getRetiredRootCA()) + writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getCurrentRootCA()) } } }