wip: ci
infra/dch-selinux/pipeline/head This commit looks good
Details
infra/dch-selinux/pipeline/head This commit looks good
Details
parent
f82eb54e02
commit
7ae316c9a1
|
@ -0,0 +1,37 @@
|
||||||
|
// vim: set sw=4 ts=4 sts=4 et :
|
||||||
|
|
||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
kubernetes {
|
||||||
|
yamlFile 'ci/podTemplate.yaml'
|
||||||
|
defaultContainer 'build'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
sh 'make rpm'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Publish') {
|
||||||
|
steps {
|
||||||
|
withCredentials([usernamePassword(
|
||||||
|
credentialsId: 'jenkins-packages',
|
||||||
|
usernameVariable: 'GITEA_USERNAME',
|
||||||
|
passwordVariable: 'GITEA_PASSWORD',
|
||||||
|
)]) {
|
||||||
|
sh 'make publish'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
archiveArtifacts '*.rpm'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: build
|
||||||
|
image: git.pyrocufflink.net/containerimages/build/selinux:main
|
||||||
|
imagePullPolicy: Always
|
||||||
|
securityPolicy:
|
||||||
|
runAsNonRoot: true
|
Loading…
Reference in New Issue