forked from 3liz/QgisCadastrePlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
129 lines (119 loc) · 3 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
stages:
- tests
- build
- deploy
- release
variables:
FACTORY_PRODUCT_NAME: cadastre
FACTORY_PACKAGE_NAME: qgis_cadastre
FACTORY_PACKAGE_TYPE: plugin
FACTORY_MANIFEST: ".lizcloud/factory.manifest"
check_tag:
stage: tests
only:
- tags
tags:
- fabric
script:
- .lizcloud/check_tag.sh ${CI_COMMIT_REF_NAME}
build_3:
stage: build
script:
- make -C .lizcloud -f factory.mk package
environment:
name: snap
artifacts:
paths:
- ".lizcloud/factory.manifest"
tags:
- infrav3
deploy_snap_3:
stage: deploy
script:
- $FACTORY_SCRIPTS/deploy-package $FACTORY_PACKAGE_NAME
environment:
name: snap
tags:
- infrav3
release_prod_3:
stage: release
script:
- $FACTORY_SCRIPTS/release-package $FACTORY_PACKAGE_NAME
environment:
name: production
when: manual
only:
- tags
tags:
- infrav3
build_2:
stage: build
script:
- make -C .lizcloud -f fabric.mk package
environment:
name: snap
tags:
- fabric
deploy_snap_2:
stage: deploy
script:
- sudo -u fabric fab snap deploy:qgis3_cadastre,force=true
environment:
name: snap
tags:
- fabric
release_prod_2:
stage: release
script:
- sudo -u fabric fab prod release:qgis3_cadastre
environment:
name: production
when: manual
only:
- tags
tags:
- fabric
issues:
stage: release
allow_failure: true
when: manual
only:
- tags
script:
# Lizmap-box
- >
curl
--header 'Content-Type:application/json'
--header "PRIVATE-TOKEN:${USER_TOKEN}"
--data '{
"id":70,
"assignee_ids":[77],
"labels":"qgis server",
"title":"Nouvelle version QGIS Serveur '"${FACTORY_PRODUCT_NAME}"' : '"${CI_COMMIT_REF_NAME}"'",
"description":"Il existe une nouvelle version pour QGIS Serveur de '"${FACTORY_PRODUCT_NAME}"' : '"${CI_COMMIT_REF_NAME}"' 👍"}'
--request POST https://projects.3liz.org/api/v4/projects/70/issues
# Infra-doc
- >
curl
--header 'Content-Type:application/json'
--header "PRIVATE-TOKEN:${USER_TOKEN}"
--data '{
"id":7,
"assignee_ids":[2],
"labels":"SAAS Qgis,release,infra-v2",
"title":"Nouvelle version QGIS Serveur '"${FACTORY_PRODUCT_NAME}"' : '"${CI_COMMIT_REF_NAME}"'",
"description":"Il existe une nouvelle version pour QGIS Serveur de '"${FACTORY_PRODUCT_NAME}"' : '"${CI_COMMIT_REF_NAME}"' 👍"}'
--request POST https://projects.3liz.org/api/v4/projects/7/issues
- >
curl
--header 'Content-Type:application/json'
--header "PRIVATE-TOKEN:${USER_TOKEN}"
--data '{
"id":7,
"assignee_ids":[5],
"labels":"SAAS Qgis,release,infra-v3",
"title":"Nouvelle version QGIS Serveur '"${FACTORY_PRODUCT_NAME}"' : '"${CI_COMMIT_REF_NAME}"'",
"description":"Il existe une nouvelle version pour QGIS Serveur de '"${FACTORY_PRODUCT_NAME}"' : '"${CI_COMMIT_REF_NAME}"' 👍"}'
--request POST https://projects.3liz.org/api/v4/projects/7/issues
tags:
- factory