wip: ci
dustin/dch-selinux/pipeline/pr-master There was a failure building this commit
Details
dustin/dch-selinux/pipeline/pr-master There was a failure building this commit
Details
parent
e01a9125e7
commit
3cbe6d43e2
|
@ -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')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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()
|
Loading…
Reference in New Issue