This commit is contained in:
2023-06-19 14:28:01 +02:00
parent dcb1650d4a
commit 26fd9f2e9f
15 changed files with 67 additions and 66 deletions

21
Jenkinsfile vendored
View File

@ -9,16 +9,17 @@ symfonyAppPipeline('ubuntu:22.04', [
// Run docker image build, verification and publication stages
'postSymfonyAppPipeline': {
stage('Build and publish hydra-dispatcher image') {
steps {
echo "Building docker images"
script {
make
}
echo "Publish docker images"
script {
make release
}
}
// Retrieve current tag
String currentTag = sh(script: 'git tag --points-at HEAD | head -n 1', returnStdout: true).trim()
// Retrieve default tag
String defaultTag = sh(returnStdout: true, script: 'git describe --always').trim()
container.buildAndPublishImage([
'imageName': 'reg.cadoles.com/pcaseiro/myapplication',
// Use current tag or default tag if not defined
'imageTag': defaultTag,
'dockerfile': './misc/images/hydra-sql-standalone/Dockerfile',
'dryRun': false
])
}
}
]