pipeline { agent any options { buildDiscarder( logRotator( numToKeepStr: '5' ) ) } stages { stage("Clean Up Repo") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash git reset --hard git clean -xfd ''' } } } stage("Clean Docker Caches") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker system prune --volumes -f ''' } } } stage("Stop Workers") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker-compose down docker stop linuxbuilder || true docker stop linuxfs || true docker stop arch || true ''' } } } stage("Build Debian Base") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:debian DebianBase docker push git.zontreck.com/ariascreations/buildenvironments:debian ''' } } } stage("Builder Debian Compiler") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:debianbuild DebianBuilder docker push git.zontreck.com/ariascreations/buildenvironments:debianbuild ''' } } } stage("Build ADK") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:adk AndroidSDK docker push git.zontreck.com/ariascreations/buildenvironments:adk ''' } } } stage("Build Flutter") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:flutter FlutterSdk docker push git.zontreck.com/ariascreations/buildenvironments:flutter ''' } } } stage("Build AppImage Layer") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:appimage AppImage docker push git.zontreck.com/ariascreations/buildenvironments:appimage ''' } } } stage("Build Linux Node") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:linux LinuxGeneralCompiler docker push git.zontreck.com/ariascreations/buildenvironments:linux ''' } } } stage("Build Linux Firestorm Node") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:linuxfs FirestormLinux docker push git.zontreck.com/ariascreations/buildenvironments:linuxfs ''' } } } stage("Build Arch Base") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:arch ArchBase docker push git.zontreck.com/ariascreations/buildenvironments:arch ''' } } } stage("Build Arch Develop") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:archdev ArchBuilder docker push git.zontreck.com/ariascreations/buildenvironments:archdev ''' } } } stage("Build DIND Image") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:dindagent DINDAgent docker push git.zontreck.com/ariascreations/buildenvironments:dindagent ''' } } } stage("Build NextCloud Image") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:nextcloud NextCloud docker push git.zontreck.com/ariascreations/buildenvironments:nextcloud ''' } } } stage("Clean Up Caches") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker system prune --volumes -f ''' } } } } }