mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
Add smart support for Local Manifests
Now you can prepare them before hand, and when the build will start will take them in consideration everytime. Before you had to wait at least the first round of build to be able to add your local manifest.
This commit is contained in:
parent
a4ed962dee
commit
d37f232193
@ -7,6 +7,7 @@ MAINTAINER Julian Xhokaxhiu <info at julianxhokaxhiu dot com>
|
||||
ENV SRC_DIR /srv/src
|
||||
ENV CCACHE_DIR /srv/ccache
|
||||
ENV OUT_DIR /srv/out
|
||||
ENV LMANIFEST_DIR /src/manifest
|
||||
|
||||
# Configurable environment variables
|
||||
####################################
|
||||
@ -59,6 +60,7 @@ ENV ANDROID_JACK_VM_ARGS "-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G"
|
||||
VOLUME $SRC_DIR
|
||||
VOLUME $CCACHE_DIR
|
||||
VOLUME $OUT_DIR
|
||||
VOLUME $LMANIFEST_DIR
|
||||
|
||||
# Copy required files and fix permissions
|
||||
#####################
|
||||
@ -71,6 +73,7 @@ COPY src/* /root/
|
||||
RUN mkdir -p $SRC_DIR
|
||||
RUN mkdir -p $CCACHE_DIR
|
||||
RUN mkdir -p $OUT_DIR
|
||||
RUN mkdir -p $LMANIFEST_DIR
|
||||
|
||||
# Set the work directory
|
||||
########################
|
||||
|
@ -21,6 +21,9 @@ if ! [ -z "$DEVICE_LIST" ]; then
|
||||
yes | repo init -u git://github.com/lineageos/android.git -b $BRANCH_NAME 2>&1 >&$OUTPUT
|
||||
fi
|
||||
|
||||
# Copy local manifests to the appropriate folder in order take them into consideration
|
||||
cp * $LMANIFEST_DIR/* $SRC_DIR/.repo/local_manifests/
|
||||
|
||||
# Go to "vendor/cm" and reset it's current git status ( remove previous changes ) only if the directory exists
|
||||
if [ -d "vendor/cm" ]; then
|
||||
cd vendor/cm
|
||||
|
Loading…
Reference in New Issue
Block a user