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:
parent
1a0d0ebae2
commit
7dac73d307
@ -128,6 +128,7 @@ ENV SYNC_MIRROR true
|
||||
ENV RESET_VENDOR_UNDO_PATCHES true
|
||||
ENV CALL_REPO_INIT true
|
||||
ENV CALL_REPO_SYNC true
|
||||
ENV CALL_GIT_LFS_PULL false
|
||||
ENV APPLY_PATCHES true
|
||||
ENV PREPARE_BUILD_ENVIRONMENT 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"
|
||||
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
|
||||
echo ">> [$(date)] Missing \"vendor/$vendor\", aborting"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user