Update Jenkinsfile

This commit is contained in:
2025-05-26 11:08:56 +03:00
parent 0e8ee098a6
commit 547149502b

16
Jenkinsfile vendored
View File

@@ -80,24 +80,10 @@ spec:
} }
} }
} }
stage('Change values.yaml to nexus') {
steps {
container('maven') {
sh 'sed -i "s|docker.io/root/example-app:1.0.0-SNAPSHOT|localhost:31050/my-docker-repo/example-app:latest|g" target/helm/kubernetes/example-app/values.yaml'
}
}
}
stage('Change deployment.yaml to include nexus-secret') {
steps {
container('maven') {
sh 'sed -i "/containers:/i\\ imagePullSecrets:\\n - name: nexus-secret" target/helm/kubernetes/example-app/templates/deployment.yaml'
}
}
}
stage('Make chart') { stage('Make chart') {
steps { steps {
container('helm') { container('helm') {
sh 'helm package target/helm/kubernetes/example-app' sh 'helm package example-app-helm-chart/example-app'
} }
} }
} }