Registry?
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
def label = "jenkins-${UUID.randomUUID().toString()}"
|
def label = "jenkins-${UUID.randomUUID().toString()}"
|
||||||
|
|
||||||
def kanikoImage = "registry.test-chamber-13.lan:5000/nhyatt/kaniko:latest"
|
def repository = "registry.test-chamber-13.lan:8443/nhyatt"
|
||||||
def pushRepo = "registry.test-chamber-13.lan:5000"
|
def kanikoImage = "${repository}/kaniko:latest"
|
||||||
def repositoryCreds = "quay-repository-creds"
|
def repositoryCreds = "quay-repository-creds"
|
||||||
|
|
||||||
def caName = "test-chamber-13.lan.root.crt"
|
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 + "/" + caName, text: caContent)
|
||||||
writeFile(file: workspace + "/Dockerfile", text: DF)
|
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\""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user