Skip to content

Commit 97922e0

Browse files
author
Mickael Dumand
committed
docs: add gitlabCI integration example
1 parent 06ba09a commit 97922e0

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,25 @@ yarn add @getluko/android-rollout-node --dev
1515
```
1616
npx android-rollout-node com.package.app production ./api-google-service_account.json
1717
```
18+
19+
## Gitlab CI integration
20+
21+
- .gitlab-ci.yml
22+
23+
```
24+
stages:
25+
- android_rollout
26+
27+
android_rollout:
28+
rules:
29+
- if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULE_TYPE == "android_rollout"
30+
stage: android_rollout
31+
script:
32+
- yarn
33+
- yarn release:rollout:android:ci
34+
```
35+
36+
- $SCHEDULE_TYPE should be configure as `android_rollout` in variables
37+
- Schedule cron to run it everyday of the week at 10am `0 10 * * 1-7`
38+
39+
![Gitlab CI Pipeline](./docs/gitlab_schedule_pipeline.png "Gitlab CI Schedule")

docs/gitlab_schedule_pipeline.png

59.3 KB
Loading

0 commit comments

Comments
 (0)