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

Call before.sh (and correct doc comment)

This commit is contained in:
Pete Fotheringham 2024-09-02 15:03:00 +01:00
parent f5df79adc2
commit bc6051d962

@ -31,12 +31,12 @@
# - main sync and build loop # - main sync and build loop
# For each device in `$DEVICE_LIST` # For each device in `$DEVICE_LIST`
# - setup subdirectories # - setup subdirectories
# - `repo init`
# - `repo sync`
# - setup our overlays # - setup our overlays
# - Add custom packages to be installed # - Add custom packages to be installed
# - Handle keys # - Handle keys
# - Prepare the environment # - Prepare the environment
# - `repo init`
# - `repo sync`
# - Call `before.sh` # - Call `before.sh`
# - `breakfast` - in case of failure, call # - `breakfast` - in case of failure, call
# - `post-build.sh` # - `post-build.sh`
@ -298,6 +298,14 @@ for codename in ${devices//,/ }; do
echo ">> [$(date)] Preparing build environment disabled" echo ">> [$(date)] Preparing build environment disabled"
fi fi
# Call `before.sh`
if [ -f /root/userscripts/before.sh ]; then
echo ">> [$(date)] Running before.sh"
echo "before.sh is now called *after* repo sync."
echo "In previous versions, iot was called *before* repo sync"
/root/userscripts/before.sh || { echo ">> [$(date)] Error: before.sh failed for $branch!"; userscriptfail=true; continue; }
fi
fi fi