Extract prepare signing step
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-12-10 08:57:54 +01:00
parent 5447c47d61
commit fa24e254dc

View File

@@ -4,22 +4,23 @@ type: docker
name: Android name: Android
steps: steps:
- name: build - name: prepareSigning
image: mingc/android-build-box image: busybox
environment: environment:
STOREPASSWORD: STOREPASSWORD:
from_secret: StorePassword from_secret: StorePassword
KEYPASSWORD: KEYPASSWORD:
from_secret: KeyPassword from_secret: KeyPassword
volumes:
- name: deploy
path: /tmp/deploy
commands: commands:
- touch keystore.properties - touch keystore.properties
- echo "storePassword=$STOREPASSWORD" >> keystore.properties - echo "storePassword=$STOREPASSWORD" >> keystore.properties
- echo "keyPassword=$KEYPASSWORD" >> keystore.properties - echo "keyPassword=$KEYPASSWORD" >> keystore.properties
- echo "keyAlias=key0" >> keystore.properties - echo "keyAlias=key0" >> keystore.properties
- echo "storeFile=../AndroidKey" >> keystore.properties - echo "storeFile=../AndroidKey" >> keystore.properties
- name: build
image: mingc/android-build-box
commands:
- ./gradlew test - ./gradlew test
- ./gradlew assembleDebug - ./gradlew assembleDebug
- ./gradlew bundleRelease - ./gradlew bundleRelease