forked from mindol1004/msa-kiz-app
업데이트 'Jenkinsfile'
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -45,11 +45,9 @@ podTemplate(
|
|||||||
|
|
||||||
stage("Dockerize and Push") {
|
stage("Dockerize and Push") {
|
||||||
container("docker") {
|
container("docker") {
|
||||||
|
def dockerImage = docker.build "${image}:${tag}"
|
||||||
docker.withRegistry("https://10.43.250.34:5000/v2/", 'REGISTRY_CREDENTIALS') {
|
docker.withRegistry("https://10.43.250.34:5000/v2/", 'REGISTRY_CREDENTIALS') {
|
||||||
sh "docker build -t ${image}:${tag} ."
|
dockerImage.push('latest')
|
||||||
sh "docker push ${image}:${tag}"
|
|
||||||
sh "docker tag ${image}:${tag} ${image}:latest"
|
|
||||||
sh "docker push ${image}:latest"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user