mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
Add RELEASE_TYPE
This commit is contained in:
parent
f170ae7a6a
commit
40847c7763
@ -28,6 +28,9 @@ ENV BRANCH_NAME 'cm-14.1'
|
||||
# eg. DEVICE_LIST=hammerhead,bullhead,angler
|
||||
ENV DEVICE_LIST ''
|
||||
|
||||
# Release type string
|
||||
ENV RELEASE_TYPE 'UNOFFICIAL'
|
||||
|
||||
# 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 ''
|
||||
|
@ -70,6 +70,10 @@ if ! [ -z "$DEVICE_LIST" ]; then
|
||||
echo ">> [$(date)] Preparing build environment" >> $DOCKER_LOG
|
||||
source build/envsetup.sh 2>&1 >&$DEBUG_LOG
|
||||
|
||||
echo ">> [$(date)] Setting \"$RELEASE_TYPE\" as release type" >> $DOCKER_LOG
|
||||
sed -i '/#.*Filter out random types/d' vendor/cm/config/common.mk
|
||||
sed -i '/$(filter .*$(CM_BUILDTYPE)/,+3d' vendor/cm/config/common.mk
|
||||
|
||||
# Set a custom updater URI if a OTA URL is provided
|
||||
if ! [ -z "$OTA_URL" ]; then
|
||||
echo ">> [$(date)] Adding OTA URL '$OTA_URL' to build.prop" >> $DOCKER_LOG
|
||||
|
Loading…
Reference in New Issue
Block a user