From e0aa4650de1267c78e9ca0fa18e0b8682e9b4e6e Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Tue, 9 Jul 2019 15:05:20 +0200 Subject: [PATCH] Add support for more tags (#22) * Add support for more tags * Fix array --- builder.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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[@]