Loading Dockerfile +5 −1 Original line number Diff line number Diff line Loading @@ -41,6 +41,9 @@ ENV DEVICE_LIST '' # Release type string ENV RELEASE_TYPE 'UNOFFICIAL' # Repo use for build ENV REPO_URL 'https://github.com/LineageOS/android.git' # OTA URL that will be used inside CMUpdater # Use this in combination with LineageOTA to make sure your device can auto-update itself from this buildbot ENV OTA_URL '' Loading Loading @@ -141,6 +144,7 @@ VOLUME $DELTA_DIR VOLUME $KEYS_DIR VOLUME $LOGS_DIR VOLUME $USERSCRIPTS_DIR VOLUME /root/.ssh # Copy required files ##################### Loading README.md +1 −1 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ The two fundamental settings are (default value in brackets): * `BRANCH_NAME (cm-14.1)`: LineageOS branch, see the branch list [here](https://github.com/LineageOS/android_vendor_cm/branches) * `DEVICE_LIST`: comma-separated list of devices to build * `REPO_URL (https://github.com/LineageOS/android.git)`: LineageOS repo use for build Running a build with only these two set will create a ZIP file almost identical to the LineageOS official builds, just signed with the test keys. Loading Loading @@ -267,4 +268,3 @@ docker run \ -v "/home/user/manifests:/srv/local_manifests" \ lineageos4microg/docker-lineage-cicd ``` src/build.sh +4 −5 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ fi # If needed, migrate from the old SRC_DIR structure if [ -d "$SRC_DIR/.repo" ]; then branch_dir=$(repo info -o | sed -ne 's/Manifest branch: refs\/heads\///p' | sed 's/[^[:alnum:]]/_/g') branch_dir=$(repo info -o | sed -ne 's/Manifest merge branch: refs\/heads\///p' | sed 's/[^[:alnum:]]/_/g') branch_dir=${branch_dir^^} echo ">> [$(date)] WARNING: old source dir detected, moving source from \"\$SRC_DIR\" to \"\$SRC_DIR/$branch_dir\"" if [ -d "$branch_dir" ] && [ -z "$(ls -A "$branch_dir")" ]; then Loading Loading @@ -102,9 +102,9 @@ for branch in ${BRANCH_NAME//,/ }; do echo ">> [$(date)] (Re)initializing branch repository" | tee -a "$repo_log" if [ "$LOCAL_MIRROR" = true ]; then yes | repo init -u https://github.com/LineageOS/android.git --reference "$MIRROR_DIR" -b "$branch" &>> "$repo_log" yes | repo init -u "$REPO_URL" --reference "$MIRROR_DIR" -b "$branch" &>> "$repo_log" else yes | repo init -u https://github.com/LineageOS/android.git -b "$branch" &>> "$repo_log" yes | repo init -u "$REPO_URL" -b "$branch" &>> "$repo_log" fi # Copy local manifests to the appropriate folder in order take them into consideration Loading @@ -121,7 +121,7 @@ for branch in ${BRANCH_NAME//,/ }; do elif [[ $branch =~ .*lineage-15\.1.* ]]; then themuppets_branch=lineage-15.1 else themuppets_branch=lineage-15.1 themuppets_branch=cm-14.1 echo ">> [$(date)] Can't find a matching branch on github.com/TheMuppets, using $themuppets_branch" fi Loading Loading @@ -405,4 +405,3 @@ if [ -f /root/userscripts/end.sh ]; then echo ">> [$(date)] Running end.sh" /root/userscripts/end.sh fi Loading
Dockerfile +5 −1 Original line number Diff line number Diff line Loading @@ -41,6 +41,9 @@ ENV DEVICE_LIST '' # Release type string ENV RELEASE_TYPE 'UNOFFICIAL' # Repo use for build ENV REPO_URL 'https://github.com/LineageOS/android.git' # OTA URL that will be used inside CMUpdater # Use this in combination with LineageOTA to make sure your device can auto-update itself from this buildbot ENV OTA_URL '' Loading Loading @@ -141,6 +144,7 @@ VOLUME $DELTA_DIR VOLUME $KEYS_DIR VOLUME $LOGS_DIR VOLUME $USERSCRIPTS_DIR VOLUME /root/.ssh # Copy required files ##################### Loading
README.md +1 −1 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ The two fundamental settings are (default value in brackets): * `BRANCH_NAME (cm-14.1)`: LineageOS branch, see the branch list [here](https://github.com/LineageOS/android_vendor_cm/branches) * `DEVICE_LIST`: comma-separated list of devices to build * `REPO_URL (https://github.com/LineageOS/android.git)`: LineageOS repo use for build Running a build with only these two set will create a ZIP file almost identical to the LineageOS official builds, just signed with the test keys. Loading Loading @@ -267,4 +268,3 @@ docker run \ -v "/home/user/manifests:/srv/local_manifests" \ lineageos4microg/docker-lineage-cicd ```
src/build.sh +4 −5 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ fi # If needed, migrate from the old SRC_DIR structure if [ -d "$SRC_DIR/.repo" ]; then branch_dir=$(repo info -o | sed -ne 's/Manifest branch: refs\/heads\///p' | sed 's/[^[:alnum:]]/_/g') branch_dir=$(repo info -o | sed -ne 's/Manifest merge branch: refs\/heads\///p' | sed 's/[^[:alnum:]]/_/g') branch_dir=${branch_dir^^} echo ">> [$(date)] WARNING: old source dir detected, moving source from \"\$SRC_DIR\" to \"\$SRC_DIR/$branch_dir\"" if [ -d "$branch_dir" ] && [ -z "$(ls -A "$branch_dir")" ]; then Loading Loading @@ -102,9 +102,9 @@ for branch in ${BRANCH_NAME//,/ }; do echo ">> [$(date)] (Re)initializing branch repository" | tee -a "$repo_log" if [ "$LOCAL_MIRROR" = true ]; then yes | repo init -u https://github.com/LineageOS/android.git --reference "$MIRROR_DIR" -b "$branch" &>> "$repo_log" yes | repo init -u "$REPO_URL" --reference "$MIRROR_DIR" -b "$branch" &>> "$repo_log" else yes | repo init -u https://github.com/LineageOS/android.git -b "$branch" &>> "$repo_log" yes | repo init -u "$REPO_URL" -b "$branch" &>> "$repo_log" fi # Copy local manifests to the appropriate folder in order take them into consideration Loading @@ -121,7 +121,7 @@ for branch in ${BRANCH_NAME//,/ }; do elif [[ $branch =~ .*lineage-15\.1.* ]]; then themuppets_branch=lineage-15.1 else themuppets_branch=lineage-15.1 themuppets_branch=cm-14.1 echo ">> [$(date)] Can't find a matching branch on github.com/TheMuppets, using $themuppets_branch" fi Loading Loading @@ -405,4 +405,3 @@ if [ -f /root/userscripts/end.sh ]; then echo ">> [$(date)] Running end.sh" /root/userscripts/end.sh fi