Skip to content

Commit

Permalink
Fix Docker login with (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Oct 23, 2019
1 parent 1da5f46 commit 27f352b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ function start_docker() {
fi
done
bashio::log.info "Docker was initialized"

if [ "$DOCKER_LOGIN" == "true" ]; then
docker login
fi
}


Expand Down Expand Up @@ -970,6 +966,11 @@ mkdir -p /data
init_crosscompile
start_docker

# Login into dockerhub
if [ "$DOCKER_LOGIN" == "true" ]; then
docker login
fi

# Load external repository
if [ -n "$GIT_REPOSITORY" ]; then
bashio::log.info "Checkout repository $GIT_REPOSITORY"
Expand Down

0 comments on commit 27f352b

Please sign in to comment.