Merge pull request 'push fixed version images' (!73) from feature/auto-release-fixed-tags into master
All checks were successful
rvr-nextgen/pipeline/head This commit looks good
All checks were successful
rvr-nextgen/pipeline/head This commit looks good
Reviewed-on: #73
This commit is contained in:
commit
14d83d24b4
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -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}"""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user