-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
23 lines (20 loc) · 835 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
23 lines (20 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Deploy automatically the app using Gitlab CI
# Builds the app using a custom Docker image for Ionic Android build
# Sends the APK file to a Slack channel for sharing
variables:
SDK_URL: https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
ANDROID_HOME: /usr/local/android-sdk
ANDROID_SDK_ROOT: /usr/local/android-sdk
ANDROID_VERSION: 28
ANDROID_BUILD_TOOLS_VERSION: 27.0.3
NVM_DIR: ~/.nvm
OUTPUT_PATH: /builds/remy.hidra/clapback-app/platforms/android/app/build/outputs/apk/debug/app-debug.apk
deploy-android:
image: rhidra/ionic-build:latest
stage: deploy
only: [master]
script:
# Build the APK
- ionic cordova build android --prod --debug
# Send the APK file to Slack
- curl -F file=@$OUTPUT_PATH -F channels=#sentry -F token=$SLACK_TOKEN https://slack.com/api/files.upload