With the Google Play integration, you can configure your CI/CD pipelines to connect to the Google Play Console to build and release apps for Android devices.
The Google Play integration works out of the box with fastlane. You can also use this integration with other build tools.
- You must have a Google Play Console developer account.
- You must generate a new service account key for your project from the Google Cloud console.
To enable the Google Play integration in GitLab:
- On the left sidebar, select Search or go to and find your project.
- Select Settings > Integrations.
- Select Google Play.
- In Enable integration, select the Active checkbox.
- In Package name, enter the package name of the app (for example,
- Optional. Under Protected branches and tags only, select the Only set variables on protected branches and tags checkbox.
- In Service account key (.JSON), drag or upload your key file.
- Optional. Select Test settings.
- Select Save changes.
After you enable the integration, the global variables
$SUPPLY_JSON_KEY_DATA are created for CI/CD use.
Malicious code pushed to your
.gitlab-ci.yml file could compromise your variables, including
$SUPPLY_JSON_KEY_DATA, and send them to a third-party server. For more information, see CI/CD variable security.
To enable the integration in fastlane and upload the build to the given track in Google Play, you can add the following code to your app’s
upload_to_play_store( track: 'internal', aab: '../build/app/outputs/bundle/release/app-release.aab' )