This commit is contained in:
Philippe Caseiro 2023-06-19 14:29:43 +02:00
parent 26fd9f2e9f
commit 6c0dab4b38
1 changed files with 9 additions and 2 deletions

11
Jenkinsfile vendored
View File

@ -14,10 +14,17 @@ symfonyAppPipeline('ubuntu:22.04', [
// 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()
container.buildAndPublishImage([ container.buildAndPublishImage([
'imageName': 'reg.cadoles.com/pcaseiro/myapplication', '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/hydra-sql-standalone/Dockerfile', 'dockerfile': './misc/images/myapplication-standalone/Dockerfile',
'dryRun': false
])
container.buildAndPublishImage([
'imageName': 'reg.cadoles.com/pcaseiro/myapplication-kube',
// Use current tag or default tag if not defined
'imageTag': defaultTag,
'dockerfile': './misc/images/myapplication-kube/Dockerfile',
'dryRun': false 'dryRun': false
]) ])
} }