Build docker image on dev branch
Some checks failed
Amarillo/amarillo-gitea/amarillo-enhancer/pipeline/head There was a failure building this commit
Some checks failed
Amarillo/amarillo-gitea/amarillo-enhancer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
dda4cb40e0
commit
9884532c1f
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
|
@ -51,7 +51,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Build docker image') {
|
stage('Build docker image') {
|
||||||
when {
|
when {
|
||||||
branch 'main'
|
anyOf { branch 'main'; branch 'dev' }
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo 'Building image'
|
echo 'Building image'
|
||||||
|
|
@ -62,7 +62,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Push image to container registry') {
|
stage('Push image to container registry') {
|
||||||
when {
|
when {
|
||||||
branch 'main'
|
anyOf { branch 'main'; branch 'dev' }
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo 'Pushing image to registry'
|
echo 'Pushing image to registry'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue