ci: make metis image publish stages opt-in for SCM runs

This commit is contained in:
Brad Stein 2026-04-12 05:07:42 -03:00
parent feeeeeda3a
commit e452bd779a

19
Jenkinsfile vendored
View File

@ -94,6 +94,13 @@ spec:
options {
disableConcurrentBuilds()
}
parameters {
booleanParam(
name: 'PUBLISH_IMAGES',
defaultValue: false,
description: 'Build and push runtime images (enable for release runs).'
)
}
triggers {
pollSCM('H/5 * * * *')
}
@ -155,6 +162,9 @@ spec:
}
stage('Prep toolchain') {
when {
expression { return params.PUBLISH_IMAGES }
}
steps {
container('builder') {
sh '''
@ -167,6 +177,9 @@ spec:
}
stage('Compute version') {
when {
expression { return params.PUBLISH_IMAGES }
}
steps {
container('builder') {
script {
@ -184,6 +197,9 @@ spec:
}
stage('Buildx setup') {
when {
expression { return params.PUBLISH_IMAGES }
}
steps {
container('builder') {
sh '''
@ -212,6 +228,9 @@ spec:
}
stage('Build & push images') {
when {
expression { return params.PUBLISH_IMAGES }
}
steps {
container('builder') {
sh '''