-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
.gitlab-ci.yml
107 lines (93 loc) · 1.83 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
96
97
98
99
100
101
102
103
104
105
106
107
#-------------
# Build
#-------------
.build-docker:
image: ${REGISTRY_URL}/factory-ci-runner:build-package
stage: docker
script:
- make manifest
- make -C docker build deliver pushrc clean FLAVOR=$QGIS_FLAVOR BUILD_TARGET=amqp
environment:
name: snap
artifacts:
paths:
- "docker/factory-${QGIS_FLAVOR}.manifest"
only:
refs:
- tags
- master
tags:
- factory
build-docker:release:
extends: .build-docker
variables:
QGIS_FLAVOR: release
build-docker:ltr:
extends: .build-docker
variables:
QGIS_FLAVOR: ltr
#
# Compatibility with previous ltr
#
build-docker:3.28:
extends: .build-docker
variables:
QGIS_FLAVOR: "3.28"
#-------------
# deploy
#-------------
deploy_snap:
image: ${REGISTRY_URL}/factory-ci-runner:build-package
stage: deploy
script:
- update-service map
environment:
name: snap
only:
refs:
- tags
- master
tags:
- factory-plain
#-------------
# Release
#-------------
.release:
image: ${REGISTRY_URL}/factory-ci-runner:build-package
stage: release
script:
- release-image qgis-map-server-$QGIS_FLAVOR
- push-to-docker-hub --clean
environment:
name: production
when: manual
# See https://about.gitlab.com/blog/2021/05/20/dag-manual-fix/#what-if-i-dont-want-this-new-behavior
allow_failure: false
only:
refs:
- tags
tags:
- factory-dind
variables:
FACTORY_MANIFEST: "docker/factory-${QGIS_FLAVOR}.manifest"
release:release:
extends: .release
variables:
QGIS_FLAVOR: release
dependencies:
- build-docker:release
release:ltr:
extends: .release
variables:
QGIS_FLAVOR: ltr
dependencies:
- build-docker:ltr
#
# Compatibility with previous ltr
#
release:3.28:
extends: .release
variables:
QGIS_FLAVOR: "3.28"
dependencies:
- build-docker:3.28