ReaderForSelfoss-multiplatform/.drone.yml

21 lines
1.1 KiB
YAML
Raw Normal View History

2022-07-23 20:28:06 +00:00
kind: pipeline
type: docker
2022-09-13 19:52:23 +00:00
name: Deploy
steps:
2022-09-13 19:56:24 +00:00
- name: build-and-sign
2022-09-13 19:52:23 +00:00
image: mingc/android-build-box:latest
commands:
2022-09-13 19:56:24 +00:00
- ./gradlew :androidApp:assembleGithubConfigRelease -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" -P pushCache=false
2022-09-13 19:19:45 +00:00
- wget https://amine-louveau.fr/key
2022-09-13 19:47:23 +00:00
- 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
2022-09-13 18:45:47 +00:00
environment:
YOUR_KEYSTORE_PASSWORD:
2022-09-13 18:59:03 +00:00
from_secret: keyPass
2022-09-13 18:45:47 +00:00
YOUR_KEY_ALIAS:
2022-09-13 18:59:03 +00:00
from_secret: keyAlias
2022-09-13 18:45:47 +00:00
trigger:
branch:
2022-09-13 19:56:24 +00:00
- drone-sigh