-
Notifications
You must be signed in to change notification settings - Fork 74
/
.gitlab-ci.yml
95 lines (82 loc) · 1.32 KB
/
.gitlab-ci.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
- docker:dind
stages:
- image
- build
- package
- release
- fdroid
variables:
GIT_SUBMODULE_STRATEGY: recursive
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
DOCKER_TLS: ""
DOCKER_TLS_CERTDIR: ""
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
docker-image:
stage: image
script:
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
.build: &build
stage: build
script:
- bash .ci/build.sh
artifacts:
paths:
- ci-out/
armeabi-v7a:
<<: *build
variables:
TARGET_ARCH: armeabi-v7a
arm64-v8a:
<<: *build
variables:
TARGET_ARCH: arm64-v8a
x86:
<<: *build
variables:
TARGET_ARCH: x86
x86-64:
<<: *build
variables:
TARGET_ARCH: x86_64
package:
stage: package
script:
- ./.ci/package.sh
only:
- master
- tags
artifacts:
paths:
- package/
release-nightly:
stage: release
script:
- ./.ci/release-nightly.sh
only:
- master
tags:
- argon
artifacts:
paths:
- release/
release-production:
stage: release
script:
- ./.ci/download-signed-stable.sh
only:
- tags
except:
- branches
when: manual
artifacts:
paths:
- release/
push-to-fdroid:
stage: fdroid
script:
- ./.ci/push-fdroid.sh