diff --git a/build-alpine.jenkins b/build-alpine.jenkins index 311bcf0..4dae215 100644 --- a/build-alpine.jenkins +++ b/build-alpine.jenkins @@ -50,7 +50,8 @@ spec: container("kaniko") { def DF = """FROM ${repository}/dockerhub/library/alpine:latest -RUN printf '%s\\n' "-----BEGIN CERTIFICATE-----" \\ +RUN apk add --no-cache --virtual=.packagecache ca-certificates && \\ + printf '%s\\n' "-----BEGIN CERTIFICATE-----" \\ "MIICLTCCAbOgAwIBAgIDAYagMAoGCCqGSM49BAMEME0xCzAJBgNVBAYTAlVTMScw" \\ "JQYDVQQKDB5UZXN0IENoYW1iZXIgMTMgVHJ1c3QgU2VydmljZXMxFTATBgNVBAMM" \\ "DFRDMTMgUm9vdCBSMTAgFw0xOTAxMDEwMDAwMDBaGA8yMDUwMDEwMTAwMDAwMFow" \\ @@ -64,7 +65,6 @@ RUN printf '%s\\n' "-----BEGIN CERTIFICATE-----" \\ "xdH/UVQfQppjIR9FAiGeFDr47thclYrzIL6yCkV7nwIwYjf3MbOm/yWblzqe3Uyw" \\ "UOemMEg3PjcKNsN65W2WVon5HIZx2XVfGRPjf5ZTVWzZ" \\ "-----END CERTIFICATE-----" > /usr/local/share/ca-certificates/test-chamber-13.lan.root.crt && \\ - add --no-cache --virtual=.packagecache ca-certificates && \\ update-ca-certificates --fresh && \\ apk del .packagecache """