From 01aff4a6957c4bc902fe7eb9a27b535e1620eeac Mon Sep 17 00:00:00 2001 From: aminecmi Date: Tue, 13 Sep 2022 20:45:47 +0200 Subject: [PATCH] Signing. --- .drone.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b401477..b36d78b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,4 +18,30 @@ steps: - name: build image: mingc/android-build-box:latest commands: - - ./gradlew :androidApp:build -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" -P pushCache=false \ No newline at end of file + - ./gradlew :androidApp:build -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" -P pushCache=false + + +--- +kind: pipeline +type: docker +name: Deploy + +steps: + - name: build-and-sign + image: mingc/android-build-box:latest + commands: + - ./gradlew :androidApp:assembleRelease -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" -P pushCache=false + - wget https://amine-louveau.fr/testtest_everywhere + - jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ./testtest_everywhere -storepass YOUR_KEYSTORE_PASSWORD androidApp/build/outputs/apk/githubConfig/release/androidApp-githubConfig-release-unsigned.apk YOUR_KEY_ALIAS + - $ANDROID_HOME/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/build-tools/version/apksigner verify androidApp/build/outputs/apk/githubConfig/release/android-prod-released-signed.apk + environment: + YOUR_KEYSTORE_PASSWORD: + from_secret: YOUR_KEYSTORE_PASSWORD + YOUR_KEY_ALIAS: + from_secret: YOUR_KEY_ALIAS + + +trigger: + branch: + - drone-sigh \ No newline at end of file