mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
hack/make: Strip "v" tag prefix name from VERSION
To make the version format in the `moby-bin` consistent with the version we use in the release pipeline. ```diff Server: Docker Engine - Community Engine: - Version: v25.0.0 + Version: 25.0.0 ... ``` Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
@@ -39,7 +39,9 @@ DEFAULT_BUNDLES=(
|
||||
)
|
||||
|
||||
VERSION=${VERSION:-dev}
|
||||
if [[ $VERSION == refs/tags/* ]]; then
|
||||
if [[ $VERSION == refs/tags/v* ]]; then
|
||||
VERSION=${VERSION#refs/tags/v}
|
||||
else if [[ $VERSION == refs/tags/* ]]; then
|
||||
VERSION=${VERSION#refs/tags/}
|
||||
elif [[ $VERSION == refs/heads/* ]]; then
|
||||
VERSION=$(sed <<< "${VERSION#refs/heads/}" -r 's#/+#-#g')
|
||||
|
||||
Reference in New Issue
Block a user