From 720dd72155c27a61164d9c315c316ac1fee68026 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Tue, 13 Sep 2022 20:59:03 +0200 Subject: [PATCH] Changes. --- .drone.yml | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/.drone.yml b/.drone.yml index b36d78b..bae5eeb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,45 +1,21 @@ kind: pipeline type: docker -name: android - -steps: - - name: code-analysis - image: mingc/android-build-box:latest - failure: ignore - commands: - - ls -la - - ./gradlew sonarqube -Dsonar.projectKey=RFS2 -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" - environment: - SONAR_HOST_URL: - from_secret: sonarScannerHostUrl - SONAR_LOGIN: - from_secret: sonarScannerLogin - - - 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 - - ---- -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 + - ./gradlew :androidApp:assembleGithubConfigRelease -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 + - $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: YOUR_KEYSTORE_PASSWORD + from_secret: keyPass YOUR_KEY_ALIAS: - from_secret: YOUR_KEY_ALIAS + from_secret: keyAlias trigger: