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
|
"https://gitlab.com/the-muppets/manifest/raw/mirror/default.xml" .repo/local_manifests/proprietary_gitlab.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log"
|
if [ "$SYNC_MIRROR" = true ]; then
|
||||||
repo sync "${jobs_arg[@]}" "${retry_fetches_arg[@]}" --force-sync --no-clone-bundle &>> "$repo_log"
|
echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log"
|
||||||
fi
|
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
|
for branch in ${BRANCH_NAME//,/ }; do
|
||||||
branch_dir=${branch//[^[:alnum:]]/_}
|
branch_dir=${branch//[^[:alnum:]]/_}
|
||||||
|
Loading…
Reference in New Issue
Block a user