This Docker image is being used by our private Gitlab CI agent to enable Android builds. We are simply extending the official React Native Android CI image with fastlane.
Docker images are published in our Dockerhub account https://hub.docker.com/repository/docker/hybridheroes/android-ci. To access the account you will need to obtain access credentials from BitWarden.
To upload an updated Version of the image, follow these steps:
- Bump the upstream image's version in the
Dockerfile
FROM reactnativecommunity/react-native-android:7.0
- Build a Docker image. Be sure to tag it with an incremented version and update the
latest
tag.
docker build . -t hybridheroes/android-ci:4
docker tag hybridheroes/android-ci:4 hybridheroes/android-ci:latest
- Push the image to Dockerhub:
docker push hybridheroes/android-ci:4
docker push hybridheroes/android-ci:latest
- Use the updated image in your
.gitlab-ci.yml
:
.deploy_android:
extends: .deploy
image: hybridheroes/android-ci:4
tags:
- docker