issue-14: optimisation dockerfile
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
2023-06-16 13:46:17 +02:00
parent 22231f791f
commit a823ac7d0e
6 changed files with 31 additions and 10 deletions

21
Jenkinsfile vendored
View File

@ -4,4 +4,23 @@
// Utilisation du pipeline partagé pour les applications Symfony de Cadoles
// Le nom de l'image Docker passée en paramètre vous permet de préciser l'environnement de test
// de votre application Symfony
symfonyAppPipeline("ubuntu:22.04")
symfonyAppPipeline('ubuntu:22.04', [
'hooks': [
// Run docker image build, verification and publication stages
'postSymfonyAppPipeline': {
stage('Build and publish hydra-dispatcher image') {
// 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/cadoles/hydra-dispatcher',
// Use current tag or default tag if not defined
'imageTag': defaultTag,
'dockerfile': './misc/docker/Dockerfile',
'dryRun': false
])
}
}
]
])