jenkins save docker step executed only in main
LocationBasedServices/smartguide/pipeline/head This commit looks good

This commit is contained in:
2026-06-16 11:28:28 +02:00
parent 27987080ea
commit a7620b1900
Vendored
+3
View File
@@ -28,6 +28,9 @@ pipeline {
}
stage('Save Docker image') {
when {
branch 'main'
}
steps {
sh 'docker save ${IMAGE_PREFIX}-app:${IMAGE_VERSION} | gzip > app-image.tar.gz'
}