Update 'build-alpine.jenkins'

This commit is contained in:
Hyatt 2021-05-22 19:37:24 +00:00
parent 0981711a09
commit 51973bb08b

View File

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