Skip to content

Commit

Permalink
Cleanup homeassistant-base (#42)
Browse files Browse the repository at this point in the history
* Cleanup homeassistant-base

* cleanup
  • Loading branch information
pvizeli authored Mar 3, 2020
1 parent b01b85d commit 621fdf9
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ Options:
Build our base ubuntu images.
--base-debian <VERSION>
Build our base debian images.
--homeassistant-base <VERSION=PYTHON_TAG>
Build a Home-Assistant base image.
--homeassistant <VERSION>
Build the generic release for a Home-Assistant.
--homeassisant-landingpage
Expand Down Expand Up @@ -554,25 +552,6 @@ function build_generic() {
}


function build_homeassistant_base() {
local build_arch=$1

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

# Set labels
docker_cli+=("--label" "io.hass.type=base")
docker_cli+=("--label" "io.hass.base.version=$VERSION")
docker_cli+=("--label" "io.hass.base.image=$DOCKER_HUB/$image")

# Start build
run_build "$TARGET" "$DOCKER_HUB" "$image" "$VERSION" \
"$build_from" "$build_arch" docker_cli[@] docker_tags[@]
}


function build_homeassistant() {
local build_arch=$1

Expand Down Expand Up @@ -865,12 +844,6 @@ while [[ $# -gt 0 ]]; do
VERSION=$2
shift
;;
--homeassistant-base)
BUILD_TYPE="homeassistant-base"
VERSION="$(echo "$2" | cut -d '=' -f 1)"
PYTHON="$(echo "$2" | cut -d '=' -f 2)"
shift
;;
--homeassistant)
BUILD_TYPE="homeassistant"
SELF_CACHE=true
Expand Down Expand Up @@ -955,8 +928,6 @@ if [ "${#BUILD_LIST[@]}" -ne 0 ]; then
(build_base_debian_image "$arch") &
elif [ "$BUILD_TYPE" == "base-raspbian" ]; then
(build_base_raspbian_image "$arch") &
elif [ "$BUILD_TYPE" == "homeassistant-base" ]; then
(build_homeassistant_base "$arch") &
elif [ "$BUILD_TYPE" == "homeassistant" ]; then
(build_homeassistant "$arch") &
elif [ "$BUILD_TYPE" == "builder-wheels" ]; then
Expand Down

0 comments on commit 621fdf9

Please sign in to comment.