Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix array style #15

Merged
merged 1 commit into from
Jun 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ function run_build() {
local version=$4
local build_from=$5
local build_arch=$6
local docker_cli=("${!7}")
local docker_tags=("${!8}")
local docker_cli=$7
local docker_tags=$8

local push_images=()
local cache_tag="latest"
Expand Down Expand Up @@ -335,7 +335,7 @@ function build_builder() {

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

function build_base_image() {
Expand All @@ -354,7 +354,7 @@ function build_base_image() {

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

function build_base_python_image() {
Expand All @@ -379,7 +379,7 @@ function build_base_python_image() {

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


Expand All @@ -405,7 +405,7 @@ function build_base_ubuntu_image() {

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


Expand All @@ -431,7 +431,7 @@ function build_base_raspbian_image() {

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


Expand Down Expand Up @@ -500,7 +500,7 @@ function build_addon() {

# Start build
run_build "$TARGET" "$repository" "$image" "$version" \
"$build_from" "$build_arch" docker_cli[@] docker_tags[@]
"$build_from" "$build_arch" "${docker_cli[*]}" "${docker_tags[*]}"
}


Expand All @@ -524,7 +524,7 @@ function build_supervisor() {

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


Expand All @@ -541,7 +541,7 @@ function build_hassio_cli() {

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


Expand All @@ -560,7 +560,7 @@ function build_homeassistant_base() {

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


Expand All @@ -577,7 +577,7 @@ function build_homeassistant() {

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


Expand All @@ -596,7 +596,7 @@ function build_homeassistant_machine() {

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


Expand All @@ -615,7 +615,7 @@ function build_homeassistant_landingpage() {

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


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

# Start build
run_build "$TARGET" "$DOCKER_HUB" "$image" "$version-${PYTHON}" \
"$build_from" "$build_arch" docker_cli[@] docker_tags[@]
"$build_from" "$build_arch" "${docker_cli[*]}" "${docker_tags[*]}"
}


Expand Down