Update .gitlab-ci.yml file

This commit is contained in:
Chandrashekhar Reddy
2024-10-15 12:05:39 +00:00
parent f5dc2f425b
commit 2637f84cac

View File

@@ -52,10 +52,8 @@ assembleRelease:
script:
- |
if [[ "$CI_COMMIT_TAG" =~ release ]]; then
echo "Downloading keystore file from GitLab secure files"
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
--output $CI_PROJECT_DIR/app/keystore.jks \
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/uploads/${KEYSTORE_FILE_ID}"
echo "Decoding keystore file from Base64"
echo $BASE64_KEYSTORE | base64 --decode > $CI_PROJECT_DIR/app/keystore.jks
echo "Building signed release APK"
./gradlew assembleRelease -Pandroid.injected.signing.store.file=$CI_PROJECT_DIR/app/keystore.jks \
-Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD \