24 lines
1.1 KiB
YAML
24 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
|
|
- $ANDROID_HOME/build-tools/31.0.0/zipalign -f -v 4 androidApp/build/outputs/apk/githubConfig/release/androidApp-githubConfig-release-unsigned.apk androidApp/build/outputs/apk/githubConfig/release/android-prod-released-ziped.apk
|
|
- $ANDROID_HOME/build-tools/31.0.0/apksigner sign -v --out signed.apk --ks ./key --ks-key-alias $YOUR_KEY_ALIAS --ks-pass pass:$YOUR_KEYSTORE_PASSWORD --v1-signing-enabled true --v2-signing-enabled true androidApp/build/outputs/apk/githubConfig/release/android-prod-released-ziped.apk
|
|
- $ANDROID_HOME/build-tools/31.0.0/apksigner verify signed.apk
|
|
environment:
|
|
YOUR_KEYSTORE_PASSWORD:
|
|
from_secret: keyPass
|
|
YOUR_KEY_ALIAS:
|
|
from_secret: keyAlias
|
|
|
|
volumes:
|
|
- name: cache
|
|
host:
|
|
path: /tmp/cache |