From 44b70263985cca9e7db316682dce491f6ab63aa1 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Tue, 13 Sep 2022 22:11:35 +0200 Subject: [PATCH] Still testing --- .drone.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index cf6a04a..85064a2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,19 +3,22 @@ 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/build-tools/31.0.0/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/build-tools/31.0.0/apksigner verify androidApp/build/outputs/apk/githubConfig/release/android-prod-released-signed.apk + - $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 $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 -trigger: - branch: - - drone-sigh \ No newline at end of file + +volumes: + - name: cache + host: + path: /tmp/cache \ No newline at end of file