10
0
This repository has been archived on 2024-07-26. You can view files and clone it, but cannot push or open issues or pull requests.
mikrotik-exporter/Jenkinsfile

21 lines
383 B
Plaintext
Raw Normal View History

2021-10-17 02:13:18 +00:00
#!/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)
}
}
}