Browse Source

Upgrade Ubuntu and SDK

master
Ambrose Chua 3 years ago
parent
commit
3e0e453f9a
  1. 10
      Dockerfile
  2. 11
      drone.yml.example

10
Dockerfile

@ -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

@ -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
Loading…
Cancel
Save