Yolks/Jenkinsfile
2024-09-04 19:33:09 -07:00

253 lines
No EOL
8 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
docker build -t git.zontreck.com/ariascreations/yolks:ubuntu base/ubuntu
docker build -t git.zontreck.com/ariascreations/yolks:arch base/arch
'''
}
}
}
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
docker push git.zontreck.com/ariascreations/yolks:ubuntu
docker push git.zontreck.com/ariascreations/yolks:arch
'''
}
}
}
stage("Build Dart Containers") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/yolks:dart_stable dart/stable
docker build -t git.zontreck.com/ariascreations/yolks:dart_3.3 dart/3.3
'''
}
}
}
stage("Push Dart Containers") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker push git.zontreck.com/ariascreations/yolks:dart_stable
docker push git.zontreck.com/ariascreations/yolks:dart_3.3
'''
}
}
}
stage("Build Java Containers") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/yolks:jdk8 java/8
docker build -t git.zontreck.com/ariascreations/yolks:jdk11 java/11
docker build -t git.zontreck.com/ariascreations/yolks:jdk16 java/16
docker build -t git.zontreck.com/ariascreations/yolks:jdk17 java/17
docker build -t git.zontreck.com/ariascreations/yolks:jdk19 java/19
docker build -t git.zontreck.com/ariascreations/yolks:jdk21 java/21
'''
}
}
}
stage("Push Java Containers") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker push git.zontreck.com/ariascreations/yolks:jdk8
docker push git.zontreck.com/ariascreations/yolks:jdk11
docker push git.zontreck.com/ariascreations/yolks:jdk16
docker push git.zontreck.com/ariascreations/yolks:jdk17
docker push git.zontreck.com/ariascreations/yolks:jdk19
docker push git.zontreck.com/ariascreations/yolks:jdk21
'''
}
}
}
stage("Build Wine Containers") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/yolks:wine_8.0 wine/8.0
docker build -t git.zontreck.com/ariascreations/yolks:wine_8.21 wine/8.21
docker build -t git.zontreck.com/ariascreations/yolks:wine_9.0 wine/9.0
docker build -t git.zontreck.com/ariascreations/yolks:wine_9.16 wine/9.16
'''
}
}
}
stage("Push Wine Containers") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker push git.zontreck.com/ariascreations/yolks:wine_8.0
docker push git.zontreck.com/ariascreations/yolks:wine_8.21
docker push git.zontreck.com/ariascreations/yolks:wine_9.0
docker push git.zontreck.com/ariascreations/yolks:wine_9.16
'''
}
}
}
stage("Build Installers") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/yolks:installers_alpine installers/alpine
docker build -t git.zontreck.com/ariascreations/yolks:installers_debian installers/debian
docker build -t git.zontreck.com/ariascreations/yolks:installers_ubuntu installers/ubuntu
'''
}
}
}
stage("Push Installers") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker push git.zontreck.com/ariascreations/yolks:installers_alpine
docker push git.zontreck.com/ariascreations/yolks:installers_debian
docker push git.zontreck.com/ariascreations/yolks:installers_ubuntu
'''
}
}
}
stage("Build Steamcmd") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_debian steamcmd/debian
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_dotnet steamcmd/dotnet
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_proton steamcmd/proton
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_proton8 steamcmd/proton_8
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_sniper steamcmd/sniper
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_ubuntu steamcmd/ubuntu
'''
}
}
}
stage("Push steamcmd") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker push git.zontreck.com/ariascreations/yolks:steamcmd_debian
docker push git.zontreck.com/ariascreations/yolks:steamcmd_dotnet
docker push git.zontreck.com/ariascreations/yolks:steamcmd_proton
docker push git.zontreck.com/ariascreations/yolks:steamcmd_proton8
docker push git.zontreck.com/ariascreations/yolks:steamcmd_sniper
docker push git.zontreck.com/ariascreations/yolks:steamcmd_ubuntu
'''
}
}
}
stage("Cleanup") {
agent {
label 'dockermain'
}
steps {
deleteDir()
}
}
}
}