mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
Make syncing branch repository switchable
This commit is contained in:
parent
e4cf653a9c
commit
8f2815fac2
@ -87,7 +87,6 @@ if [ "$LOCAL_MIRROR" = true ]; then
|
|||||||
else
|
else
|
||||||
echo ">> [$(date)] Initializing mirror repository disabled" | tee -a "$repo_log"
|
echo ">> [$(date)] Initializing mirror repository disabled" | tee -a "$repo_log"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# Copy local manifests to the appropriate folder in order take them into consideration
|
# Copy local manifests to the appropriate folder in order take them into consideration
|
||||||
echo ">> [$(date)] Copying '$LMANIFEST_DIR/*.xml' to '.repo/local_manifests/'"
|
echo ">> [$(date)] Copying '$LMANIFEST_DIR/*.xml' to '.repo/local_manifests/'"
|
||||||
@ -107,6 +106,7 @@ fi
|
|||||||
else
|
else
|
||||||
echo ">> [$(date)] Sync mirror repository disabled" | tee -a "$repo_log"
|
echo ">> [$(date)] Sync mirror repository disabled" | tee -a "$repo_log"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
for branch in ${BRANCH_NAME//,/ }; do
|
for branch in ${BRANCH_NAME//,/ }; do
|
||||||
branch_dir=${branch//[^[:alnum:]]/_}
|
branch_dir=${branch//[^[:alnum:]]/_}
|
||||||
@ -206,9 +206,9 @@ for branch in ${BRANCH_NAME//,/ }; do
|
|||||||
"https://gitlab.com/the-muppets/manifest/raw/$themuppets_branch/muppets.xml" .repo/local_manifests/proprietary_gitlab.xml
|
"https://gitlab.com/the-muppets/manifest/raw/$themuppets_branch/muppets.xml" .repo/local_manifests/proprietary_gitlab.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CALL_REPO_INIT" = true ]; then
|
builddate=$(date +%Y%m%d)
|
||||||
|
if [ "$CALL_REPO_SYNC" = true ]; then
|
||||||
echo ">> [$(date)] Syncing branch repository" | tee -a "$repo_log"
|
echo ">> [$(date)] Syncing branch repository" | tee -a "$repo_log"
|
||||||
builddate=$(date +%Y%m%d)
|
|
||||||
repo sync "${jobs_arg[@]}" -c --force-sync &>> "$repo_log"
|
repo sync "${jobs_arg[@]}" -c --force-sync &>> "$repo_log"
|
||||||
else
|
else
|
||||||
echo ">> [$(date)] Syncing branch repository disabled" | tee -a "$repo_log"
|
echo ">> [$(date)] Syncing branch repository disabled" | tee -a "$repo_log"
|
||||||
|
Loading…
Reference in New Issue
Block a user