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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1
build.sh
1
build.sh
|
@ -2,4 +2,3 @@
|
|||
|
||||
|
||||
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