Setup CI/CD pipeline for React Native with gitlab, app center and code push
Project detail
Description
——————-
The goal of this task is to create a git repository for a react native app and to setup a continuous delivery pipeline so that new features and fixes can be shipped just by merging code.
Background:
——————–
This is a setup for an algo trading app which will automatically make decisions in day trading.
Ideal Candidate
————————-
Full time freelancer is preferred.
Effort Estimation
—————————
1 day
Acceptance Criteria
——————————–
A build needs to be triggered on app center and app installed in tablet needs to get automatically updated without any installation when:
1. a commit is made on main
2. branch is merged on main
Steps
———-
1. Create empty repository in gitlab
2. Create react native app locally on computer and push code
3. Link app center to gitlab repository and setup build configuration (build ‘release build’ on commit to main branch)
4. Setup distribution on app center
5. Setup code push on react native app
6. Setup ‘post-build-script.sh’ to trigger code push on build success
Resources
—————–
Demo video of setup: https://youtu.be/ejVPtJF3x7s
Sample appcenter-post-build.sh : https://github.com/microsoft/appcenter/blob/master/sample-build-scripts/react-native/codepush-hockeyapp/appcenter-post-build.sh