prometheus-textfile-collectors/Jenkinsfile

21 lines
380 B
Plaintext
Raw Normal View History

2021-10-17 07:41:28 +00:00
#!/usr/bin/groovy
image = "prometheus-textfile-collectors"
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)
}
}
}