prometheus-textfile-collectors/Jenkinsfile
Madis Mägi d398f602b1
All checks were successful
gitea-kspace/prometheus-textfile-collectors/pipeline/head This commit looks good
Add Jenkinsfile
2021-10-17 10:41:28 +03:00

21 lines
380 B
Groovy

#!/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)
}
}
}