Commit ca0bb5a8 authored by 卢浩元's avatar 卢浩元

Update Jenkinsfile-charts

parent 5da1074f
......@@ -66,15 +66,15 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
}
stage('docker-build') {
sh "docker build . -t ${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}"
sh "docker build . -t ${params.REGISTRY_URL}/library/k8s-example:${shortGitCommit}"
}
stage('docker-push') {
sh "docker push ${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}"
sh "docker push ${params.REGISTRY_URL}/library/k8s-example:${shortGitCommit}"
}
stage('docker-remove') {
sh "docker rmi ${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}"
sh "docker rmi ${params.REGISTRY_URL}/library/k8s-example:${shortGitCommit}"
}
}
......@@ -82,7 +82,7 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
container('helm') {
stage('helm deploy') {
sh label: "replace config", script: """
sed -i s#lusyoe/k8s-example#${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}#g charts/values.yaml
sed -i s#lusyoe/k8s-example#${params.REGISTRY_URL}/library/k8s-example:${shortGitCommit}#g charts/values.yaml
"""
sh "helm upgrade --install k8s-example charts/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment