Add Jenkins build pipeline
dustin/receipts/pipeline/head This commit looks good Details

Dustin 2025-03-12 06:43:17 -05:00
parent a09de49fbe
commit 31d872468c
1 changed files with 25 additions and 0 deletions

25
ci/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,25 @@
@Library('containerimages')_
buildContainerImage2(project: 'packages')
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'
}
}
}