1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

Add switchable git lfs pull call

This commit is contained in:
Pete 2024-01-01 15:00:45 +00:00 committed by Pete Fotheringham
parent 1a0d0ebae2
commit 7dac73d307
2 changed files with 8 additions and 0 deletions

@ -128,6 +128,7 @@ ENV SYNC_MIRROR true
ENV RESET_VENDOR_UNDO_PATCHES true ENV RESET_VENDOR_UNDO_PATCHES true
ENV CALL_REPO_INIT true ENV CALL_REPO_INIT true
ENV CALL_REPO_SYNC true ENV CALL_REPO_SYNC true
ENV CALL_GIT_LFS_PULL false
ENV APPLY_PATCHES true ENV APPLY_PATCHES true
ENV PREPARE_BUILD_ENVIRONMENT true ENV PREPARE_BUILD_ENVIRONMENT true
ENV CALL_BREAKFAST true ENV CALL_BREAKFAST true

@ -218,6 +218,13 @@ for branch in ${BRANCH_NAME//,/ }; do
echo ">> [$(date)] Syncing branch repository disabled" | tee -a "$repo_log" echo ">> [$(date)] Syncing branch repository disabled" | tee -a "$repo_log"
fi fi
if [ "$CALL_GIT_LFS_PULL" = true ]; then
echo ">> [$(date)] Calling git lfs pull" | tee -a "$repo_log"
repo forall -v -c git lfs pull &>> "$repo_log"
else
echo ">> [$(date)] Calling git lfs pull disabled" | tee -a "$repo_log"
fi
if [ ! -d "vendor/$vendor" ]; then if [ ! -d "vendor/$vendor" ]; then
echo ">> [$(date)] Missing \"vendor/$vendor\", aborting" echo ">> [$(date)] Missing \"vendor/$vendor\", aborting"
exit 1 exit 1