push fixed version images
Some checks failed
rvr-nextgen/pipeline/pr-master There was a failure building this commit

This commit is contained in:
Bence Pőcze 2023-10-01 00:04:08 +02:00
parent 9b8fcaad9a
commit 8dbf4533aa
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

11
Jenkinsfile vendored
View File

@ -98,6 +98,17 @@ pipeline {
--push \ --push \
.""", .""",
label: 'Build Docker image' label: 'Build Docker image'
if (env.BRANCH_NAME == 'master') {
if (env.VERSION ==~ '-\\d+-g[a-f0-9]{7}') {
env.FIXED_VERSION = 'dev'
} else {
env.FIXED_VERSION = 'stable'
}
sh script: """docker buildx imagetools create \
-t git.esoko.eu/esoko/rvr:${env.FIXED_VERSION}
git.esoko.eu/esoko/rvr:${env.VERSION}
}
} }
} }
} }