Skip to content

Instantly share code, notes, and snippets.

@rutvikbhatt9
Last active May 21, 2020 11:43
Show Gist options
  • Save rutvikbhatt9/d47c0e2b552b1a03e535b474749ed986 to your computer and use it in GitHub Desktop.
Save rutvikbhatt9/d47c0e2b552b1a03e535b474749ed986 to your computer and use it in GitHub Desktop.
Create PlayJson directory in Docker container and make play-store-key.json file from CI/CD Variable
build_release_android:
stage: build_release_android
script:
- mkdir /PlayJson #make temp directory named PlayJson in root of project
- "echo $PLAY_STORE_JSON > /PlayJson/play-store-key.json" # copy git variable value to play-store-key.json file
- ./gradlew publishApkRelease # command to publish app on play store
only:
- master #set trigger for CICD if push or merge in master branch
artifacts:
paths:
- ./app/build/outputs/ # set artifact path which store your APK file
@shbadawy
Copy link

shouldn't the quotes be removed ?

@rutvikbhatt9
Copy link
Author

shouldn't the quotes be removed ?

You can try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment