fup-try-009
This commit is contained in:
parent
932ce45164
commit
0178bdba9b
|
@ -9,24 +9,22 @@ symfonyAppPipeline('ubuntu:22.04', [
|
||||||
// Run docker image build, verification and publication stages
|
// Run docker image build, verification and publication stages
|
||||||
'postSymfonyAppPipeline': {
|
'postSymfonyAppPipeline': {
|
||||||
stage('Build and publish hydra-dispatcher image') {
|
stage('Build and publish hydra-dispatcher image') {
|
||||||
sh()
|
|
||||||
// Retrieve current tag
|
// Retrieve current tag
|
||||||
String currentTag = sh(script: 'git tag --points-at HEAD | head -n 1', returnStdout: true).trim()
|
String currentTag = sh(script: 'git tag --points-at HEAD | head -n 1', returnStdout: true).trim()
|
||||||
// Retrieve default tag
|
// Retrieve default tag
|
||||||
String defaultTag = sh(returnStdout: true, script: 'git describe --always').trim()
|
String defaultTag = sh(returnStdout: true, script: 'git describe --always').trim()
|
||||||
sh(script: 'pwd').trim()
|
|
||||||
container.buildAndPublishImage([
|
container.buildAndPublishImage([
|
||||||
'imageName': 'reg.cadoles.com/pcaseiro/myapplication-standalone',
|
'imageName': 'reg.cadoles.com/pcaseiro/myapplication-standalone',
|
||||||
// Use current tag or default tag if not defined
|
// Use current tag or default tag if not defined
|
||||||
'imageTag': defaultTag,
|
'imageTag': defaultTag,
|
||||||
'dockerfile': 'misc/images/myapplication-standalone/Dockerfile',
|
'dockerfile': './misc/images/myapplication-standalone/Dockerfile',
|
||||||
'dryRun': false
|
'dryRun': false
|
||||||
])
|
])
|
||||||
container.buildAndPublishImage([
|
container.buildAndPublishImage([
|
||||||
'imageName': 'reg.cadoles.com/pcaseiro/myapplication-kube',
|
'imageName': 'reg.cadoles.com/pcaseiro/myapplication-kube',
|
||||||
// Use current tag or default tag if not defined
|
// Use current tag or default tag if not defined
|
||||||
'imageTag': defaultTag,
|
'imageTag': defaultTag,
|
||||||
'dockerfile': 'misc/images/myapplication-kube/Dockerfile',
|
'dockerfile': './misc/images/myapplication-kube/Dockerfile',
|
||||||
'dryRun': false
|
'dryRun': false
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue