1
0
Fork 0

wip: ci
dustin/dch-selinux/pipeline/pr-master There was a failure building this commit Details

pull/1/head
Dustin 2022-12-19 11:07:30 -06:00
parent e01a9125e7
commit 3cbe6d43e2
2 changed files with 55 additions and 0 deletions

41
ci/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,41 @@
// vim: set sw=4 ts=4 sts=4 et :
def buildrpm(destdir, containerName) {
sh "mkdir '${destdir}'"
sh "git archive HEAD | tar -x -C '${destdir}'"
container(containerName) {
sh 'make rpm'
}
}
pipeline {
agent {
kubernetes {
yamlFile 'ci/podTemplate.yaml'
}
}
stages {
stage('Build') {
parallel {
stage('Fedora 34') {
steps {
script {
buildrpm('34', 'fedora34')
}
}
}
stage('Fedora 37') {
steps {
script {
buildrpm('37', 'fedora37')
}
}
}
}
}
}
}

14
ci/podTemplate.yaml Normal file
View File

@ -0,0 +1,14 @@
spec:
containers:
- name: fedora34
image: registry.fedoraproject.org/fedora:34
command:
- python3
- -c
- import signal; signal.pause()
- name: fedora37
image: registry.fedoraproject.org/fedora:37
command:
- python3
- -c
- import signal; signal.pause()