Build docker image on dev branch

This commit is contained in:
Csaba 2024-06-12 14:45:05 +02:00
parent dda4cb40e0
commit 0552d9dca1

4
Jenkinsfile vendored
View file

@ -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'