Skip to content

Commit

Permalink
Add release tag function (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Jun 21, 2019
1 parent c548751 commit 2d7ae3b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down Expand Up @@ -71,6 +72,8 @@ Options:
Overwrite image name of build / support {arch}.
--release <VERSION>
Additional version information like for base images.
--release-tag
Use this as main tag.
Architecture
--armhf
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2d7ae3b

Please sign in to comment.