From 4b3bdc4c6de3a2da20b5dfdad325603ed0124d78 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 21 Jun 2019 15:22:09 +0200 Subject: [PATCH] Add release tag function --- builder.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/builder.sh b/builder.sh index 6f0bbc8..4116700 100755 --- a/builder.sh +++ b/builder.sh @@ -17,6 +17,7 @@ DOCKER_LOGIN=false DOCKER_LOCAL=false CROSSBUILD_CLEANUP=true SELF_CACHE=false +RELEASE_TAG=false GIT_REPOSITORY= GIT_BRANCH="master" TARGET= @@ -71,6 +72,8 @@ Options: Overwrite image name of build / support {arch}. --release Additional version information like for base images. + --release-tag + Use this as main tag. Architecture --armhf @@ -364,7 +367,7 @@ function build_base_python_image() { local docker_tags=() # If latest python version/build - if [ "$DOCKER_LATEST" == "true" ]; then + if [ "$RELEASE_TAG" == "true" ]; then docker_tags=("$VERSION") fi @@ -750,6 +753,9 @@ while [[ $# -gt 0 ]]; do --self-cache) SELF_CACHE=true ;; + --release-tag) + RELEASE_TAG=true + ;; -d|--docker-hub) DOCKER_HUB=$2 shift