registry changers

This commit is contained in:
2020-07-17 13:41:41 -05:00
parent 7dd35efbc2
commit ade689a47d
3 changed files with 12 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
def label = "jenkins-${UUID.randomUUID().toString()}"
def repository = "registry.test-chamber-13.lan:8443/nhyatt"
def kanikoImage = "${repository}/kaniko:latest"
def repository = "registry.test-chamber-13.lan:8443"
def kanikoImage = "${repository}/nhyatt/kaniko:latest"
def repositoryCreds = "quay-repository-creds"
def caName = "test-chamber-13.lan.root.crt"
@@ -51,7 +51,7 @@ spec:
)]) {
def dockerJSON = """{
"auths": {
"registry.test-chamber-13.lan:5000": {
"${repository}": {
"auth": "${dcreds.bytes.encodeBase64().toString()}"
}
}
@@ -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 \"${repository}/alpine:latest\""
sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/nhyatt/alpine:latest\""
}
}
}