mirror of https://gitlab.com/ceda_ei/sonzai.git
35 lines
849 B
YAML
35 lines
849 B
YAML
stages:
|
|
- build
|
|
- deploy
|
|
|
|
build:
|
|
image: reactnativecommunity/react-native-android
|
|
stage: build
|
|
script:
|
|
- yarn install
|
|
- cd android && chmod +x gradlew
|
|
- ./gradlew assembleRelease
|
|
artifacts:
|
|
paths:
|
|
- android/app/build/outputs/
|
|
|
|
|
|
deploy_tg:
|
|
image: curlimages/curl
|
|
stage: deploy
|
|
script:
|
|
- >-
|
|
curl
|
|
-F chat_id=$TG_CHAT_ID
|
|
-F document=@android/app/build/outputs/apk/release/app-release.apk
|
|
-F caption=" <b>Branch</b>: <code>$CI_COMMIT_BRANCH</code>
|
|
|
|
<b>Commit</b>: <code>$CI_COMMIT_SHORT_SHA</code>
|
|
|
|
<b>Tag(if any)</b>: <code>$CI_COMMIT_TAG</code>
|
|
|
|
|
|
<code>$CI_COMMIT_MESSAGE</code>"
|
|
-F parse_mode=html
|
|
https://api.telegram.org/bot${TG_BOT_TOKEN}/sendDocument
|