diff --git a/builder.sh b/builder.sh index 82ce035..025a520 100755 --- a/builder.sh +++ b/builder.sh @@ -576,6 +576,15 @@ function build_homeassistant() { # Set labels docker_cli+=("--label" "io.hass.type=homeassistant") + # Add additional tag + if [[ "$VERSION" =~ d ]]; then + docker_tags+=("dev") + elif [[ "$VERSION" =~ b ]]; then + docker_tags+=("beta") + else + docker_tags+=("stable") + fi + # Start build run_build "$TARGET" "$DOCKER_HUB" "$image" "$VERSION" \ "$build_from" "$build_arch" docker_cli[@] docker_tags[@] @@ -595,6 +604,15 @@ function build_homeassistant_machine() { docker_cli+=("--label" "io.hass.machine=$build_machine") docker_cli+=("--file" "$dockerfile") + # Add additional tag + if [[ "$VERSION" =~ d ]]; then + docker_tags+=("dev") + elif [[ "$VERSION" =~ b ]]; then + docker_tags+=("beta") + else + docker_tags+=("stable") + fi + # Start build run_build "$TARGET" "$DOCKER_HUB" "$image" "$VERSION" \ "$build_from" "" docker_cli[@] docker_tags[@]