-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
63 lines (54 loc) · 1.39 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
stages:
- build
- publish
variables:
GIT_SUBMODULE_STRATEGY: 'recursive'
DOCKER_DRIVER: overlay2
.armhf: &armhf
variables:
ARCH: "armhf"
ARCH_TRIPLET: "arm-linux-gnueabihf"
.arm64: &arm64
variables:
ARCH: "arm64"
ARCH_TRIPLET: "aarch64-linux-gnu"
.amd64: &amd64
variables:
ARCH: "amd64"
ARCH_TRIPLET: "x86_64-linux-gnu"
.build:
image: "clickable/ci-20.04-$ARCH"
stage: build
script: 'clickable build --clean --all --arch $ARCH --accept-review-errors'
artifacts:
paths:
- "build/$ARCH_TRIPLET/app/*.click"
expire_in: 1 week
build-armhf:
<<: *armhf
extends: .build
build-arm64:
<<: *arm64
extends: .build
build-amd64:
<<: *amd64
extends: .build
publish:
stage: publish
image: "clickable/ci-20.04-armhf"
rules:
- if: $CI_COMMIT_TAG
script:
- 'clickable publish --apikey OPENSTORE_API_KEY "$CI_COMMIT_MESSAGE"'
- 'clickable publish --arch arm64 --apikey OPENSTORE_API_KEY'
- 'clickable publish --arch amd64 --apikey OPENSTORE_API_KEY'
dependencies:
- build-armhf
- build-arm64
- build-amd64
artifacts:
paths:
- build/arm-linux-gnueabihf/app/*.click
- build/aarch64-linux-gnu/app/*.click
- build/x86_64-linux-gnu/app/*.click
expire_in: 30 days