23 lines
1.1 KiB
YAML
23 lines
1.1 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: Deploy
|
|
|
|
steps:
|
|
- name: build-and-sign
|
|
image: mingc/android-build-box:latest
|
|
commands:
|
|
- ./gradlew :androidApp:assembleGithubConfigRelease -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" -P pushCache=false
|
|
- wget https://amine-louveau.fr/key
|
|
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ./key -storepass YOUR_KEYSTORE_PASSWORD androidApp/build/outputs/apk/githubConfig/release/androidApp-githubConfig-release-unsigned.apk YOUR_KEY_ALIAS
|
|
- $ANDROID_HOME/sdk/build-tools/version/zipalign -v 4 androidApp/build/outputs/apk/githubConfig/release/androidApp-githubConfig-release-unsigned.apk androidApp/build/outputs/apk/githubConfig/release/android-prod-released-signed.apk
|
|
- $ANDROID_HOME/sdk/build-tools/version/apksigner verify androidApp/build/outputs/apk/githubConfig/release/android-prod-released-signed.apk
|
|
environment:
|
|
YOUR_KEYSTORE_PASSWORD:
|
|
from_secret: keyPass
|
|
YOUR_KEY_ALIAS:
|
|
from_secret: keyAlias
|
|
|
|
|
|
trigger:
|
|
branch:
|
|
- drone-sigh |