Add Jenkinsfile
This commit is contained in:
parent
0497d33f44
commit
6dc05950c3
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/groovy
|
||||
image = "mikrotik-exporter"
|
||||
label = "daily"
|
||||
build = null
|
||||
|
||||
node {
|
||||
stage("Checkout") {
|
||||
checkout scm
|
||||
}
|
||||
|
||||
stage("Build") {
|
||||
build = docker.build("kspaceee/${image}", "--no-cache ./")
|
||||
}
|
||||
|
||||
stage("Push") {
|
||||
docker.withRegistry("https://registry.hub.docker.com", "dockerhub-kspace") {
|
||||
build.push(label)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue