Only deploy from main branch
All checks were successful
Amarillo/amarillo-gitea/amarillo-core/pipeline/head This commit looks good

This commit is contained in:
Csaba 2024-02-16 14:58:39 +01:00
parent 08e0c545a1
commit 5aee8b9ecf

9
Jenkinsfile vendored
View file

@ -42,6 +42,9 @@ pipeline {
}
}
stage('Build docker image') {
when {
branch 'main'
}
steps {
echo 'Building image'
script {
@ -52,6 +55,9 @@ pipeline {
}
}
stage('Push image to container registry') {
when {
branch 'main'
}
steps {
echo 'Pushing image to registry'
script {
@ -64,6 +70,9 @@ pipeline {
}
}
stage('Notify CD script') {
when {
branch 'main'
}
steps {
echo 'Triggering deploy webhook'
script {