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") {
|
||||
container("docker") {
|
||||
def dockerImage = docker.build "${image}:${tag}"
|
||||
docker.withRegistry("https://10.43.250.34:5000/v2/", 'REGISTRY_CREDENTIALS') {
|
||||
sh "docker build -t ${image}:${tag} ."
|
||||
sh "docker push ${image}:${tag}"
|
||||
sh "docker tag ${image}:${tag} ${image}:latest"
|
||||
sh "docker push ${image}:latest"
|
||||
dockerImage.push('latest')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user