diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile new file mode 100644 index 0000000..075fe4f --- /dev/null +++ b/ci/Jenkinsfile @@ -0,0 +1,25 @@ +@Library('containerimages')_ +buildContainerImage2() + +def POD_YAML = ''' +spec: + containers: + - name: jnlp + volumeMounts: + - name: kubectl + mountPath: /bin/kubectl + readOnly: true + volumes: + - name: kubectl + hostPath: + path: /usr/bin/kubectl + type: File +''' + +podTemplate(yaml: POD_YAML) { + node(POD_LABEL) { + stage('Deploy') { + sh 'kubectl rollout restart deployment -n receipts receipts' + } + } +}