Adds a jenkinsfile

This commit is contained in:
zontreck 2024-09-03 13:59:23 -07:00
parent 6ac4516e4a
commit f2687c0c60
2 changed files with 55 additions and 2 deletions

54
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,54 @@
pipeline {
agent any
options {
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
'''
}
}
}
stage("Push Operating System Bases") {
agent {
label 'dockermain'
}
steps {
script {
sh '''
#!/bin/bash
docker push git.zontreck.com/ariascreations/yolks:alpine
'''
}
}
}
stage("Cleanup") {
agent {
label 'dockermain'
}
steps {
deleteDir()
}
}
}
}

View file

@ -1,5 +1,4 @@
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/yolks:alpine base/alpine
docker push git.zontreck.com/ariascreations/yolks:alpine
docker build -t git.zontreck.com/ariascreations/yolks:alpine base/alpine