refact(build):trim leading v from image tag

Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
Pawan 2020-05-07 19:51:59 +05:30 committed by Kiran Mova
parent a8a490e9cb
commit 654f363b5d

View file

@ -60,7 +60,7 @@ function TagAndPushImage() {
# Example: v1.10.0 maps to 1.10.0 # Example: v1.10.0 maps to 1.10.0
# Example: 1.10.0 maps to 1.10.0 # Example: 1.10.0 maps to 1.10.0
# Example: v1.10.0-custom maps to 1.10.0-custom # Example: v1.10.0-custom maps to 1.10.0-custom
TAG="$2#v" TAG="${2#v}"
# Add an option to specify a custom TAG_SUFFIX # Add an option to specify a custom TAG_SUFFIX
# via environment variable. Default is no tag. # via environment variable. Default is no tag.