Commit 273bbd20 authored by Albert Salim's avatar Albert Salim

Format semver gitaly version

parent 232c82b5
...@@ -294,11 +294,11 @@ function base_config_changed() { ...@@ -294,11 +294,11 @@ function base_config_changed() {
function parse_gitaly_image_tag() { function parse_gitaly_image_tag() {
local gitaly_version="${GITALY_VERSION}" local gitaly_version="${GITALY_VERSION}"
# returns sha if gitaly_version uses a sha # prepend semver version with `v`
if [[ ${#gitaly_version} -eq 40 ]]; then if [[ $gitaly_version =~ ^[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?(-ee)?$ ]]; then
echo "${gitaly_version}"
else
echo "v${gitaly_version}" echo "v${gitaly_version}"
else
echo "${gitaly_version}"
fi fi
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment