This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
113 lines (103 loc) · 1.76 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
stages:
- tests
- build
- deploy
- release
variables:
FACTORY_PRODUCT_NAME: qgis_logger
FACTORY_PACKAGE_NAME: qgis_logger
FACTORY_PACKAGE_TYPE: plugin
FACTORY_MANIFEST: ".lizcloud/factory.manifest"
check_tag:
stage: tests
only:
- tags
tags:
- fabric
script:
- export TAG_NAME=${CI_COMMIT_REF_NAME}
- .lizcloud/check_tag.sh ${TAG_NAME}
#flake8:
# stage: tests
# script:
# - flake8
# tags:
# - factory
build:
stage: build
script:
- make -C .lizcloud -f factory.mk package
environment:
name: snap
artifacts:
paths:
- ".lizcloud/factory.manifest"
tags:
- infrav3
deploy_snap:
stage: deploy
script:
- $FACTORY_SCRIPTS/deploy-package $FACTORY_PACKAGE_NAME
environment:
name: snap
dependencies:
- build
tags:
- infrav3
release_prod:
stage: release
script:
- $FACTORY_SCRIPTS/release-package $FACTORY_PACKAGE_NAME
environment:
name: production
dependencies:
- build
when: manual
only:
- tags
tags:
- infrav3
build_legacy:
stage: build
script:
- make -C .lizcloud -f fabric.mk package
environment:
name: snap
tags:
- fabric
- infrav2
deploy_snap_legacy:
stage: deploy
script:
- sudo -u fabric fab snap deploy:qgis3_logger,force=true
environment:
name: snap
dependencies:
- build_legacy
tags:
- fabric
- infrav2
release_prod_legacy:
stage: release
script:
- sudo -u fabric fab prod release:qgis3_logger
environment:
name: production
dependencies:
- build_legacy
when: manual
only:
- tags
tags:
- fabric
- infrav2
tickets:
stage: release
only:
- tags
image:
name: $REGISTRY_URI/infra/ci-tools:latest
script:
- create_ticket.py
tags:
- factory-plain