Skip to content

Commit

Permalink
chore: disable publication if not on infra.ci.jenkins.io (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherve authored Feb 13, 2024
1 parent 11f0ad0 commit 1ac5b8a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,8 @@ pipeline {
}

stage('Release') {
when {
// Only deploy to production from infra.ci.jenkins.io
expression { infra.isInfra() }
}
steps {
buildDockerAndPublishImage('incrementals-publisher', [automaticSemanticVersioning: true, targetplatforms: 'linux/amd64,linux/arm64'])
buildDockerAndPublishImage('incrementals-publisher', [automaticSemanticVersioning: true, targetplatforms: 'linux/amd64,linux/arm64', disablePublication: !infra.isInfra()])
}
}
}
Expand Down

0 comments on commit 1ac5b8a

Please sign in to comment.