-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yaml
45 lines (40 loc) · 1.08 KB
/
.gitlab-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This file is a template, and might need editing before it works on your project.
# Official docker image.
image: docker:latest
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
build-27:
stage: build
environment:
ANDROID_COMPILE_SDK: 27
ANDROID_BUILD_TOOLS: 28.0.3
ANDROID_SDK_TOOLS: 24.4.1
script:
- docker build . -t $CI_REGISTRY_IMAGE:$ANDROID_COMPILE_SDK
- docker push $CI_REGISTRY_IMAGE:$ANDROID_COMPILE_SDK
only:
- master
build-28:
stage: build
environment:
ANDROID_COMPILE_SDK: 28
ANDROID_BUILD_TOOLS: 28.0.3
ANDROID_SDK_TOOLS: 24.4.1
script:
- docker build . -t $CI_REGISTRY_IMAGE:$ANDROID_COMPILE_SDK
- docker push $CI_REGISTRY_IMAGE:$ANDROID_COMPILE_SDK
only:
- master
build-29:
stage: build
environment:
ANDROID_COMPILE_SDK: 29
ANDROID_BUILD_TOOLS: 28.0.3
ANDROID_SDK_TOOLS: 24.4.1
script:
- docker build . -t $CI_REGISTRY_IMAGE:$ANDROID_COMPILE_SDK
- docker push $CI_REGISTRY_IMAGE:$ANDROID_COMPILE_SDK
only:
- master