forked from mindol1004/msa-kiz-app
업데이트 'Jenkinsfile'
This commit is contained in:
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user