1
0
Fork 0

wip: ci
infra/dch-selinux/pipeline/head This commit looks good Details

Dustin 2022-12-19 11:07:30 -06:00
parent f82eb54e02
commit 7ae316c9a1
2 changed files with 44 additions and 0 deletions

37
ci/Jenkinsfile vendored Normal file
View File

@ -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'
}
}
}

7
ci/podTemplate.yaml Normal file
View File

@ -0,0 +1,7 @@
spec:
containers:
- name: build
image: git.pyrocufflink.net/containerimages/build/selinux:main
imagePullPolicy: Always
securityPolicy:
runAsNonRoot: true