Skip to content

Commit

Permalink
Support python tagging wheels (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Jun 24, 2019
1 parent 1e00b79 commit b6f198f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Options:
Build our base raspbian images.
--base-ubuntu <VERSION>
Build our base ubuntu images.
--supervisor
--supervisor <PYTHON_TAG>
Build a Hass.io supervisor image.
--hassio-cli <VERSION>
Build a Hass.io OS CLI image.
Expand Down Expand Up @@ -510,7 +510,7 @@ function build_supervisor() {

local version=""
local image="{arch}-hassio-supervisor"
local build_from="homeassistant/${build_arch}-base-python:3.7"
local build_from="homeassistant/${build_arch}-base-python:${PYTHON}"
local docker_cli=()
local docker_tags=()

Expand Down Expand Up @@ -637,7 +637,7 @@ function build_wheels() {
fi

# If latest python version/build
if [ "$DOCKER_LATEST" == "true" ] && [ -z "$VERSION" ]; then
if [ "$RELEASE_TAG" == "true" ]; then
docker_tags=("$version")
fi

Expand Down Expand Up @@ -828,6 +828,8 @@ while [[ $# -gt 0 ]]; do
;;
--supervisor)
BUILD_TYPE="supervisor"
PYTHON=$2
shift
;;
--homeassistant-base)
BUILD_TYPE="homeassistant-base"
Expand Down

0 comments on commit b6f198f

Please sign in to comment.