Yolks/Jenkinsfile
2024-09-03 14:53:01 -07:00

57 lines
No EOL
1.2 KiB
Groovy

pipeline {
agent any
options {
buildDiscarder(
logRotator(
numToKeepStr: '5'
)
)
}
stages {
stage("Build Base Operating Systems") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/yolks:alpine base/alpine
docker build -t git.zontreck.com/ariascreations/yolks:debian base/debian
'''
}
}
}
stage("Push Operating System Bases") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker push git.zontreck.com/ariascreations/yolks:alpine
docker push git.zontreck.com/ariascreations/yolks:debian
'''
}
}
}
stage("Cleanup") {
agent {
label 'dockermain'
}
steps {
deleteDir()
}
}
}
}