Remove relevant instructions

This commit is contained in:
Wetitpig 2019-02-21 09:35:57 +08:00 committed by Fredrik Fornwall
parent 5bbab4a259
commit 45eb50aa77
2 changed files with 12 additions and 21 deletions

View File

@ -1,17 +1,9 @@
image: termux/package-builder:latest
variables:
ANDROID_HOME: "/home/builder/lib/android-sdk"
NDK: "/home/builder/lib/android-ndk"
stages:
- build
- deploy
before_script:
- cp -a /home/builder/.android $HOME/.android
- chown -R $(id -u):$(id -g) $HOME/.android
## Common configuration for all build jobs.
.job_template: &build_job
stage: build

View File

@ -21,7 +21,6 @@ docker start $CONTAINER_NAME > /dev/null 2> /dev/null || {
echo "Creating new container..."
docker run \
--detach \
--env HOME=$HOME \
--name $CONTAINER_NAME \
--volume $REPOROOT:$HOME/termux-packages \
--tty \
@ -39,9 +38,9 @@ docker start $CONTAINER_NAME > /dev/null 2> /dev/null || {
}
if [ "$#" -eq "0" ]; then
docker exec --interactive --tty --user $USER $CONTAINER_NAME bash
docker exec --interactive --tty $CONTAINER_NAME bash
else
docker exec --interactive --tty --user $USER $CONTAINER_NAME $@
docker exec --interactive --tty $CONTAINER_NAME $@
fi