mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
Make sync mirror switchable
This commit is contained in:
parent
1c8f7f7343
commit
3a477c2394
@ -101,9 +101,12 @@ fi
|
||||
"https://gitlab.com/the-muppets/manifest/raw/mirror/default.xml" .repo/local_manifests/proprietary_gitlab.xml
|
||||
fi
|
||||
|
||||
echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log"
|
||||
repo sync "${jobs_arg[@]}" "${retry_fetches_arg[@]}" --force-sync --no-clone-bundle &>> "$repo_log"
|
||||
fi
|
||||
if [ "$SYNC_MIRROR" = true ]; then
|
||||
echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log"
|
||||
repo sync "${jobs_arg[@]}" --force-sync --no-clone-bundle &>> "$repo_log"
|
||||
else
|
||||
echo ">> [$(date)] Sync mirror repository disabled" | tee -a "$repo_log"
|
||||
fi
|
||||
|
||||
for branch in ${BRANCH_NAME//,/ }; do
|
||||
branch_dir=${branch//[^[:alnum:]]/_}
|
||||
|
Loading…
Reference in New Issue
Block a user