Skip to content

Commit

Permalink
build: Switch to alpine linux docker
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Baghel <[email protected]>
  • Loading branch information
radcolor committed Apr 7, 2021
1 parent 149f741 commit 7b2a822
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 65 deletions.
4 changes: 2 additions & 2 deletions .drone.yml → build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ clone:

steps:
- name: assembleDebug
image: archlinux:latest
image: alvrme/alpine-android-base:latest
environment:
GITHUB_TOKEN:
from_secret: GITHUB_TOKEN
Expand All @@ -15,5 +15,5 @@ steps:
commands:
- "export TG_BOT_API"
- "export GITHUB_TOKEN"
- pacman -Sy make git gradle zip unzip wget patch ninja curl jdk8-openjdk jre8-openjdk cmake glibc --noconfirm
- apk add bash cmake curl git make ninja patch
- bash dronebuild
12 changes: 2 additions & 10 deletions dronebuild
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
#!/bin/bash

ANDROID_SDK_VERSION=6609375
ANDROID_HOME="/opt/android-sdk"
mkdir -p ${ANDROID_HOME}/cmdline-tools
wget -q https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_SDK_VERSION}_latest.zip
unzip *tools*linux*.zip -d ${ANDROID_HOME}/cmdline-tools
rm *tools*linux*.zip
cp license_accepter.sh /opt/
chmod +x /opt/license_accepter.sh && /opt/license_accepter.sh ${ANDROID_HOME}

bash ${ANDROID_HOME}/cmdline-tools/tools/bin/sdkmanager --install "ndk;21.0.6113669"

export TZ=Asia/Kolkata
DATE="`date +%d%m%Y-%H%M%S`"

HEAD_COMMIT="$(git rev-parse HEAD)"
Expand Down Expand Up @@ -47,4 +39,4 @@ else
-d "disable_web_page_preview=true" \
-d "parse_mode=html" \
-d text="❌ <b>Build error, exiting now!</b>"
fi
fi
53 changes: 0 additions & 53 deletions license_accepter.sh

This file was deleted.

0 comments on commit 7b2a822

Please sign in to comment.