Skip to content

Fixed build trigger for Android branches #15

Fixed build trigger for Android branches

Fixed build trigger for Android branches #15

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 }}