Updates Registry
This commit is contained in:
parent
8962b94848
commit
7dd35efbc2
@ -1,6 +1,6 @@
|
|||||||
def label = "jenkins-${UUID.randomUUID().toString()}"
|
def label = "jenkins-${UUID.randomUUID().toString()}"
|
||||||
|
|
||||||
def pushRepo = "registry.test-chamber-13.lan:5000"
|
def repository = "registry.test-chamber-13.lan:8443/nhyatt"
|
||||||
def repositoryCreds = "quay-repository-creds"
|
def repositoryCreds = "quay-repository-creds"
|
||||||
|
|
||||||
def caContent = """
|
def caContent = """
|
||||||
@ -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\""
|
sh "cp /kaniko/ssl/certs/ca-certificates.crt \"${workspace}/kaniko-chain.crt\""
|
||||||
writeFile(file: workspace + "/Dockerfile", text: DF)
|
writeFile(file: workspace + "/Dockerfile", text: DF)
|
||||||
sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${pushRepo}/nhyatt/kaniko:latest\""
|
sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/kaniko:latest\""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user