In this example, you will use Cloud Native Build (CNB) to package the "android-demo" project.
master:
push:
- docker:
# Find required Android SDK version docker images on hub.docker.com
# https://hub.docker.com/r/mobiledevops/android-sdk-image
# https://github.com/docker-android-sdk
# When none meet your requirements, you can create your own docker image with needed SDK version and tools
image: mobiledevops/android-sdk-image:34.0.1
volumes:
- /root/.gradle:cow
stages:
- name: android-build
script: ./gradlew build
- name: "ls"
script: ls ./app/build/outputs/apk/release
cnb-init-from https://cnb.cool/examples/ecosystem/android-demo.git