Commit 965107e5 authored by 陈健's avatar 陈健

增加打包helm的chart包和更改jdk的镜像

parent 7506ecf8
FROM harbor.k2software.com.cn/build/openjdk:8-alpine
FROM harbor.k2software.com.cn/build/openjdk:8-alpine-tls
COPY target/java-spring-oidc-example-1.0.0-SNAPSHOT.jar /opt/app.jar
......
......@@ -98,8 +98,10 @@ podTemplate(label: pod_label, cloud: 'kubernetes', containers: [
container('helm') {
stage('helm deploy') {
sh "sed -i \"s/tag: dev/tag: dev-${env.BUILD_ID}/g\" charts/values-dev.yaml"
sh "helm upgrade --install oidc-example --namespace paas charts/ -f charts/values-dev.yaml"
sh "sed -i \"s/tag: dev/tag: dev-${env.BUILD_ID}/g\" charts/values.yaml"
//sh "helm upgrade --install oidc-example --namespace paas charts/ -f charts/values.yaml"
sh "helm package --save=false charts"
sh "cp *.tgz /mnt/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