forked from shadowproject/shadow
-
-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (31 loc) · 1.07 KB
/
build-featurebranch-android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Android-Featurebranch
on:
push:
branches:
- android_*
- android/*
jobs:
# ==========================================================================
# Build Android app
buildAndroid:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Get short SHA
id: get_short_sha
run: echo "::set-output name=github_sha_short::$(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Provide keystore
run: cp /etc/ssl/certs/AliasWalletAndroidKeyStore.jks ${{ github.workspace }}/
- name: Build app using Docker
run: >
docker build
-t local-${{ github.run_number }}-${{ steps.get_short_sha.outputs.github_sha_short }}
-f Docker/Android/Dockerfile_noUpload
--rm
--build-arg BUILD_THREADS=8
--build-arg KEYSTORE_PASS=${{ secrets.KEYSTORE_PASS }}
.
- name: Cleanup Docker images
run: docker rmi local-${{ github.run_number }}-${{ steps.get_short_sha.outputs.github_sha_short }}