Adds a jenkinsfile
This commit is contained in:
parent
6ac4516e4a
commit
f2687c0c60
2 changed files with 55 additions and 2 deletions
54
Jenkinsfile
vendored
Normal file
54
Jenkinsfile
vendored
Normal 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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3
build.sh
3
build.sh
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
docker build -t git.zontreck.com/ariascreations/yolks:alpine base/alpine
|
docker build -t git.zontreck.com/ariascreations/yolks:alpine base/alpine
|
||||||
docker push git.zontreck.com/ariascreations/yolks:alpine
|
|
Loading…
Add table
Add a link
Reference in a new issue