업데이트 'Jenkinsfile'

This commit is contained in:
2023-03-23 15:44:19 +09:00
parent ce87581daf
commit 7a8a0e2b86

6
Jenkinsfile vendored
View File

@@ -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')
}
}
}