10
0

Add Jenkinsfile
All checks were successful
gitea-kspace/mikrotik-exporter/pipeline/head This commit looks good

This commit is contained in:
Madis Mägi 2021-10-17 10:26:13 +03:00
parent 0497d33f44
commit 73081f3633

20
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,20 @@
#!/usr/bin/groovy
image = "mikrotik-exporter"
label = "latest"
build = null
node {
stage("Checkout") {
checkout scm
}
stage("Build") {
build = docker.build("kspaceee/${image}")
}
stage("Push") {
docker.withRegistry("https://registry.hub.docker.com", "dockerhub-kspace") {
build.push(label)
}
}
}