-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
57 lines (51 loc) · 1.14 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
default:
image: ${CI_REGISTRY}/android/shared/docker-android/ndk:v1.1.0
before_script:
- if [[ -f /load-env.sh ]]; then source /load-env.sh; fi
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- publish
build library:
stage: build
tags:
- large
script:
- ./gradlew :tunnel:assembleRelease
artifacts:
expire_in: 1 week
paths:
- tunnel/build/outputs/aar/
publish library:
stage: publish
tags:
- small
when: manual
only:
- /^release\/.+$/
script:
- ./gradlew publish
sync-wireguard-android:
stage: publish
only:
refs:
- /^release\/.*/
before_script:
- !reference [ default, before_script ]
- apt update && apt-get install -y connect-proxy
script:
- git clone "$CI_REPOSITORY_URL" --branch "$CI_COMMIT_BRANCH" _APP_CLONE;
- cd _APP_CLONE
- git remote add public [email protected]:ProtonVPN/wireguard-android.git
- git push public "$CI_COMMIT_BRANCH" -f
sync-go:
stage: publish
only:
refs:
- /^release\/.*/
variables:
OPENSOURCE_GO: "true"
trigger:
project: ProtonVPN/development/wireguard-go
branch: release/android