Add Jenkinsfile
All checks were successful
gitea-kspace/wildduck-exporter/pipeline/head This commit looks good
All checks were successful
gitea-kspace/wildduck-exporter/pipeline/head This commit looks good
This commit is contained in:
parent
fd94211ff7
commit
4a15d7863b
20
Jenkinsfile
vendored
Normal file
20
Jenkinsfile
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/groovy
|
||||||
|
image = "wildduck-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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user