9
0
Fork 0

Add Jenkinsfile
gitea-kspace/prometheus-textfile-collectors/pipeline/head This commit looks good Details

This commit is contained in:
Madis Mägi 2021-10-17 10:41:28 +03:00
parent ebe8455536
commit d398f602b1
1 changed files with 20 additions and 0 deletions

20
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,20 @@
#!/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)
}
}
}