Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release tag function #14

Merged
merged 1 commit into from
Jun 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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