Skip to content
Snippets Groups Projects
Commit f35d0134 authored by Taras's avatar Taras
Browse files

Initial version of gitlab ci config

parent cbd9366a
No related branches found
No related tags found
No related merge requests found
image: jangrewe/gitlab-ci-android
cache:
key: ${CI_PROJECT_ID}
paths:
- .gradle/
before_script:
- chmod +x ./gradlew
- echo "$ENV_PROP" > local.properties
stages:
- deploy
uploadPlayStoreProduction:
stage: deploy
script:
- echo "$SERVICE_JSON" > service_account.json
- aliasName=$(cat local.properties | awk -F= '{print $2}' | awk NF | awk '{a[i++]=$0} END {for (j=i-1; j>=0;) print a[j--] }' | awk NR==1)
- storePass=$(cat local.properties | awk -F= '{print $2}' | awk NF | awk '{a[i++]=$0} END {for (j=i-1; j>=0;) print a[j--] }' | awk NR==2)
- keyPass=$(cat local.properties | awk -F= '{print $2}' | awk NF | awk '{a[i++]=$0} END {for (j=i-1; j>=0;) print a[j--] }' | awk NR==3)
- ksPath=$(cd "$(dirname "app/justvers.jks")" && pwd)/$(basename "app/justvers.jks")
- bundle exec fastlane deploy pathKS:$ksPath variant:release alias:$aliasName storePassword:$storePass keyPassword:$keyPass
only:
- master
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment