ci: Add Jenkins build+publish pipeline

This commit is contained in:
2025-07-02 15:15:28 -05:00
parent 1822514b36
commit 06ffb6713c
5 changed files with 59 additions and 1 deletions

29
ci/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,29 @@
pipeline {
agent {
kubernetes {
yamlFile 'ci/podTemplate.yaml'
yamlMergeStrategy merge()
defaultContainer 'build'
}
}
stages {
stage('Build') {
steps {
sh 'make'
}
}
stage('Publish') {
environment {
PUBLISH_PATH = "/var/www/html/kickstart/${BRANCH_NAME}/"
}
steps {
sshagent(['jenkins-pxe']) {
sh 'make publish'
}
}
}
}
}

12
ci/podTemplate.yaml Normal file
View File

@@ -0,0 +1,12 @@
spec:
containers:
- name: build
image: git.pyrocufflink.net/containerimages/jenkins-common
volumeMounts:
- mountPath: /etc/ssh/ssh_known_hosts
name: ssh-known-hosts
subPath: ssh_known_hosts
volumes:
- name: ssh-known-hosts
configMap:
name: ssh-known-hosts