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