1
0
Fork 0

Upgrade Ubuntu and SDK

master
Ambrose Chua 2018-09-21 11:10:56 +08:00
parent 1199905e59
commit 3e0e453f9a
2 changed files with 16 additions and 5 deletions

View File

@ -1,9 +1,9 @@
# Android Dockerfile based on uber/android-build-environment
FROM ubuntu:16.04
FROM ubuntu:18.04
# SDK version
ENV ANDROID_SDK_VERSION 3859397
ENV ANDROID_SDK_VERSION 4333796
# Never ask for confirmations
ENV DEBIAN_FRONTEND noninteractive
@ -45,10 +45,10 @@ RUN echo "y" | sdkmanager \
# "cmake;3.6.4111459" \
"extras;google;m2repository" \
"platform-tools" \
"platforms;android-26" \
"build-tools;26.0.2"
"platforms;android-28" \
"build-tools;28.0.2"
# Add more build tools
# Add release helper
COPY release /usr/local/bin/release
# Build directory

11
drone.yml.example Normal file
View File

@ -0,0 +1,11 @@
pipeline:
build:
image: 127.0.0.1:5001/builder-android
commands:
- release
release:
image: plugins/github-release
secrets: [ github_token ]
files: app/build/outputs/apk/app-release.apk
when:
event: tag