Skip to content

Commit

Permalink
Fetch repository before copying build_config (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoronixProduct3 authored Jan 30, 2022
1 parent 6682fc8 commit 33af447
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,13 @@ mkdir -p /data
init_crosscompile
start_docker

# Load external repository
if [ -n "$GIT_REPOSITORY" ]; then
bashio::log.info "Checkout repository $GIT_REPOSITORY"
git clone --depth 1 --branch "$GIT_BRANCH" "$GIT_REPOSITORY" /data/git 2> /dev/null
TARGET="/data/git/$TARGET"
fi

# Convert configuration files to json if needed
convert_to_json

Expand All @@ -928,13 +935,6 @@ if [ -n "$DOCKER_USER" ] && [ -n "$DOCKER_PASSWORD" ]; then
fi
codenotary_setup

# Load external repository
if [ -n "$GIT_REPOSITORY" ]; then
bashio::log.info "Checkout repository $GIT_REPOSITORY"
git clone --depth 1 --branch "$GIT_BRANCH" "$GIT_REPOSITORY" /data/git 2> /dev/null
TARGET="/data/git/$TARGET"
fi

# Select arch build
if [ "${#BUILD_LIST[@]}" -ne 0 ]; then
bashio::log.info "Run $BUILD_TYPE build for: ${BUILD_LIST[*]}"
Expand Down

0 comments on commit 33af447

Please sign in to comment.