File tree Expand file tree Collapse file tree 3 files changed +22
-16
lines changed
Expand file tree Collapse file tree 3 files changed +22
-16
lines changed Original file line number Diff line number Diff line change 11FROM openjdk:8
22
3+ RUN apt-get install curl
34ARG ANDROID_SDK_VERSION=6609375
45ENV ANDROID_SDK_ROOT /opt/android-sdk
56RUN mkdir -p ${ANDROID_SDK_ROOT}/cmdline-tools && \
67 wget -q https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_SDK_VERSION}_latest.zip && \
78 unzip *tools*linux*.zip -d ${ANDROID_SDK_ROOT}/cmdline-tools && \
8- rm *tools*linux*.zip
9+ rm *tools*linux*.zip
910COPY license_accepter.sh /opt/
10- RUN chmod +x /opt/license_accepter.sh && /opt/license_accepter.sh $ANDROID_SDK_ROOT
11+ RUN chmod +x /opt/license_accepter.sh && /opt/license_accepter.sh $ANDROID_SDK_ROOT
1112ADD entrypoint.sh /entrypoint.sh
1213RUN chmod +x /entrypoint.sh
13- ENTRYPOINT ["/entrypoint.sh" ]
14+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -2,22 +2,21 @@ name: "AppBrickie"
22description : " To Test and Build a Debug Android App"
33author : " hkpdev008@gmail.com"
44
5- jobs :
6- generate-apk :
7- name : Build Debug Apk
8- runs-on : ubuntu-18.04
5+ inputs :
6+ chatid :
7+ description : " The Place to send the App "
8+ requried : true
99
10- steps :
11- - uses : actions/checkout@v2
12- - name : Upload APK
13- uses : actions/upload-artifact@v2
14- with :
15- name : app
16- path : app/build/outputs/apk/debug/app-debug.apk
10+ outputs :
11+ result :
12+ description : " Result of automated send"
1713
1814runs :
19- using : " docker"
20- image : " Dockerfile"
15+ using : " docker"
16+ image : " Dockerfile"
17+ args :
18+ - ${{inputs.chatid}}
19+
2120branding :
2221 icon : " play-circle"
2322 color : " gray-dark"
Original file line number Diff line number Diff line change 11#! /bin/sh -l
22bash ./gradlew test --stacktrace
33bash ./gradlew assembleDebug --stacktrace
4+ echo $1
5+ output=$( curl --location --request POST ' http://appbrickie.herokuapp.com/api/sendPackage' \
6+ --form ' file=@app/build/outputs/apk/debug/app-debug.apk' \
7+ --form ' id=' $1 ' ' \
8+ --form ' msg=Automated File!' )
9+ echo " ::set-output name=result::$output "
You can’t perform that action at this time.
0 commit comments