-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5c3f9e
commit a98eb19
Showing
3 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
FROM openjdk:8 | ||
|
||
RUN apt-get install curl | ||
ARG ANDROID_SDK_VERSION=6609375 | ||
ENV ANDROID_SDK_ROOT /opt/android-sdk | ||
RUN mkdir -p ${ANDROID_SDK_ROOT}/cmdline-tools && \ | ||
wget -q https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_SDK_VERSION}_latest.zip && \ | ||
unzip *tools*linux*.zip -d ${ANDROID_SDK_ROOT}/cmdline-tools && \ | ||
rm *tools*linux*.zip | ||
rm *tools*linux*.zip | ||
COPY license_accepter.sh /opt/ | ||
RUN chmod +x /opt/license_accepter.sh && /opt/license_accepter.sh $ANDROID_SDK_ROOT | ||
RUN chmod +x /opt/license_accepter.sh && /opt/license_accepter.sh $ANDROID_SDK_ROOT | ||
ADD entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
#!/bin/sh -l | ||
bash ./gradlew test --stacktrace | ||
bash ./gradlew assembleDebug --stacktrace | ||
echo $1 | ||
output=$(curl --location --request POST 'http://appbrickie.herokuapp.com/api/sendPackage' \ | ||
--form 'file=@app/build/outputs/apk/debug/app-debug.apk' \ | ||
--form 'id='$1'' \ | ||
--form 'msg=Automated File!') | ||
echo "::set-output name=result::$output" |