Skip to content

Commit

Permalink
Small improvements to builder output (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManneW authored May 5, 2020
1 parent 2cc9946 commit 0df5a40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function start_docker() {
local endtime

if [ -S "/var/run/docker.sock" ]; then
bashio::log.info "Use host docker setup with '/var/run/docker.sock'"
bashio::log.info "Using host docker setup with '/var/run/docker.sock'"
DOCKER_LOCAL="true"
return 0
fi
Expand Down Expand Up @@ -247,7 +247,7 @@ function run_build() {
docker_cli+=("--cache-from" "$repository/$image:$cache_tag")
else
docker_cli+=("--no-cache")
bashio::log.warning "No cache image found. Cache is disabled for build"
bashio::log.warning "No cache image found. Disabling cache for this build."
fi
else
docker_cli+=("--no-cache")
Expand Down Expand Up @@ -294,12 +294,12 @@ function run_build() {
if [ "$DOCKER_PUSH" == "true" ]; then
for i in "${push_images[@]}"; do
for j in {1..3}; do
bashio::log.info "Start upload $i"
bashio::log.info "Start upload of $i (attempt #${j}/3)"
if docker push "$i" > /dev/null 2>&1; then
bashio::log.info "Upload success after $j"
bashio::log.info "Upload succeeded on attempt #${j}"
break
fi
bashio::log.warning "Upload fail on $j"
bashio::log.warning "Upload failed on attempt #${j}"
sleep 30
done
done
Expand Down Expand Up @@ -518,7 +518,7 @@ function build_generic() {

# Set defaults build things
if [ -z "$build_from" ]; then
bashio::log.error "$build_arch not supported for this built"
bashio::log.error "$build_arch not supported for this build"
return 1
fi

Expand Down

0 comments on commit 0df5a40

Please sign in to comment.