Skip to content

Commit 33af447

Browse files
Fetch repository before copying build_config (#128)
1 parent 6682fc8 commit 33af447

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

builder.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,13 @@ mkdir -p /data
916916
init_crosscompile
917917
start_docker
918918

919+
# Load external repository
920+
if [ -n "$GIT_REPOSITORY" ]; then
921+
bashio::log.info "Checkout repository $GIT_REPOSITORY"
922+
git clone --depth 1 --branch "$GIT_BRANCH" "$GIT_REPOSITORY" /data/git 2> /dev/null
923+
TARGET="/data/git/$TARGET"
924+
fi
925+
919926
# Convert configuration files to json if needed
920927
convert_to_json
921928

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

931-
# Load external repository
932-
if [ -n "$GIT_REPOSITORY" ]; then
933-
bashio::log.info "Checkout repository $GIT_REPOSITORY"
934-
git clone --depth 1 --branch "$GIT_BRANCH" "$GIT_REPOSITORY" /data/git 2> /dev/null
935-
TARGET="/data/git/$TARGET"
936-
fi
937-
938938
# Select arch build
939939
if [ "${#BUILD_LIST[@]}" -ne 0 ]; then
940940
bashio::log.info "Run $BUILD_TYPE build for: ${BUILD_LIST[*]}"

0 commit comments

Comments
 (0)