diff --git a/build-alpine.jenkins b/build-alpine.jenkins index 8855337..fcb910e 100644 --- a/build-alpine.jenkins +++ b/build-alpine.jenkins @@ -1,7 +1,7 @@ def label = "jenkins-${UUID.randomUUID().toString()}" -def kanikoImage = "registry.test-chamber-13.lan:5000/nhyatt/kaniko:latest" -def pushRepo = "registry.test-chamber-13.lan:5000" +def repository = "registry.test-chamber-13.lan:8443/nhyatt" +def kanikoImage = "${repository}/kaniko:latest" def repositoryCreds = "quay-repository-creds" def caName = "test-chamber-13.lan.root.crt" @@ -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 --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${pushRepo}/nhyatt/alpine:latest\"" + sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/alpine:latest\"" } } }