Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-android-fastlane

Docker Pulls Build and publish to DockerHub

You can use this image on such CI/CD like Bitbucket/GitLab/GitHub Actions/etc, which uses docker containers.

Example for bitbucket-pipelines.yml file:

image: softartdev/android-fastlane

pipelines:
  default:
    - step:
        name: Build step
        script:
          - ./gradlew build
    - step:
        name: Publish step
        script:
         - fastlane playstore

For fastlane step within your repository you must have Fastfile with match lane inside:

default_platform(:android)

platform :android do
  lane :playstore do
    gradle(
      task: 'bundle', # for AAB, or use 'assemble' for APK
      build_type: 'Release'
    )
    upload_to_play_store # Uploads the APK/AAB built in the gradle step above
  end
end

Desirable debug it locally before push to remote repository.

Docker cheat sheet

Pull the published image:

docker pull softartdev/android-fastlane:37

Create and enter a named container with the current project mounted:

docker run --name android-fastlane -it \
  -v "$PWD":/workspace \
  -w /workspace \
  softartdev/android-fastlane:37 \
  bash

Start the same container again:

docker start -ai android-fastlane

Open another terminal inside the running container:

docker exec -it android-fastlane bash

Remove the named container:

docker stop android-fastlane
docker rm android-fastlane

Run a project from the current directory inside a disposable container:

docker run --rm -it \
  -v "$PWD":/workspace \
  -w /workspace \
  softartdev/android-fastlane:37 \
  bash

Build the mounted project:

docker run --rm -it \
  -v "$PWD":/workspace \
  -w /workspace \
  softartdev/android-fastlane:37 \
  ./gradlew build

Publish the mounted project:

docker run --rm -it \
  -v "$PWD":/workspace \
  -w /workspace \
  softartdev/android-fastlane:37 \
  fastlane playstore

Setup Fastlane

Debug your pipelines locally with Docker

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.