ci: make metis image publish stages opt-in for SCM runs
This commit is contained in:
parent
feeeeeda3a
commit
e452bd779a
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
@ -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 '''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user