From 61277283f7f8928c70b54e4e423c6ef2933a956f Mon Sep 17 00:00:00 2001 From: The_Spider Date: Sun, 12 Jul 2020 16:24:09 -0500 Subject: [PATCH] removes untrusted push. --- build-alpine.jenkins | 2 +- build-kaniko.jenkins | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build-alpine.jenkins b/build-alpine.jenkins index 4ca5750..8855337 100644 --- a/build-alpine.jenkins +++ b/build-alpine.jenkins @@ -75,7 +75,7 @@ RUN apk add --no-cache --virtual=.packagecache ca-certificates && \\ """ writeFile(file: workspace + "/" + caName, text: caContent) writeFile(file: workspace + "/Dockerfile", text: DF) - sh "/kaniko/executor --cleanup --skip-tls-verify --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${pushRepo}/nhyatt/alpine:latest\"" + sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${pushRepo}/nhyatt/alpine:latest\"" } } } diff --git a/build-kaniko.jenkins b/build-kaniko.jenkins index a050e1c..6c8542a 100644 --- a/build-kaniko.jenkins +++ b/build-kaniko.jenkins @@ -71,7 +71,7 @@ COPY kaniko-chain.crt /kaniko/ssl/certs/ca-certificates.crt """ sh "cp /kaniko/ssl/certs/ca-certificates.crt \"${workspace}/kaniko-chain.crt\"" writeFile(file: workspace + "/Dockerfile", text: DF) - sh "/kaniko/executor --cleanup --skip-tls-verify --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${pushRepo}/nhyatt/kaniko:latest\"" + sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${pushRepo}/nhyatt/kaniko:latest\"" } } }