Skip to content

Commit

Permalink
Add support for more tags (#22)
Browse files Browse the repository at this point in the history
* Add support for more tags

* Fix array
  • Loading branch information
pvizeli authored Jul 9, 2019
1 parent ce84b5c commit e0aa465
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]
Expand All @@ -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[@]
Expand Down

0 comments on commit e0aa465

Please sign in to comment.