From ba02b6d8cbeb1125aea484ef0fbccd8194cb40db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 1 Oct 2023 00:04:08 +0200 Subject: [PATCH] push fixed version images --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 41211b4..bc6113a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -98,6 +98,17 @@ pipeline { --push \ .""", 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}""" + } } } }