업데이트 'Jenkinsfile'

This commit is contained in:
2023-03-22 16:10:07 +09:00
parent 2248de3df7
commit eeec2f206f

12
Jenkinsfile vendored
View File

@@ -32,7 +32,7 @@ podTemplate(
def namespace = props["namespace"]
stage("Get Source") {
git branch: 'master', credentialsId: "${git_credential}", url: "${gitRepository}"
git branch: 'master', credentialsId: GIT_CREDENTIALS, url: http://mindol.synology.me:8418/kiz-space/eureka-server.git
}
try {
@@ -45,11 +45,11 @@ podTemplate(
stage("Dockerize and Push") {
container("docker") {
docker.withRegistry("${dockerRegistry}", "${registry_credential}") {
sh "docker build -f ./Dockerfile -t ${image}:${tag} ."
sh "docker push ${image}:${tag}"
sh "docker tag ${image}:${tag} ${image}:latest"
sh "docker push ${image}:latest"
docker.withRegistry(http://mindol.synology.me:60000/v2/_catalog/, REGISTRY_CREDENTIALS) {
sh "docker build -f ./Dockerfile -t kiz/eureka:0.1 ."
sh "docker push kiz/eureka:0.1"
sh "docker tag kiz/eureka:0.1 kiz/eureka:latest"
sh "docker push kiz/eureka:latest"
}
}
}