Add Jenkinsfile
gitea-kspace/samba/pipeline/head This commit looks good
Details
gitea-kspace/samba/pipeline/head This commit looks good
Details
This commit is contained in:
parent
d88a25ec75
commit
09d6fd8696
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/groovy
|
||||
image = "samba"
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue