Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Apr 13, 2024
1 parent 05d6e48 commit 95c303e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .gitlab/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ build-apk:
- ./packages/flutter/bin/flutter config --no-analytics
- ./packages/flutter/bin/flutter packages pub get

# Secure files usage
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --output ./android/app/mobile-ai.jks "$CI_API_V4_URL/projects/$CI_PROJECT_ID/secure_files/1"'
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --output ./android/key.properties "$CI_API_V4_URL/projects/$CI_PROJECT_ID/secure_files/2"'
# Decrypt the keystore
- echo "$KEYSTORE" | base64 --decode > android/app/key.jks
- |
echo "storeFile=key.jks" > android/key.properties
echo "storePassword=$STORE_PASSWORD" >> android/key.properties
echo "releasePassword=$KEY_PASSWORD" >> android/key.properties
echo "releaseAlias=$KEY_ALIAS" >> android/key.properties
# Build the APK (now from the project root)
- ./packages/flutter/bin/flutter build apk
Expand Down

0 comments on commit 95c303e

Please sign in to comment.