.gitlab-ci.yml 3.08 KB
Newer Older
Markus Frosch's avatar
Markus Frosch committed
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
#########################
# MANAGED BY MODULESYNC #
#########################

stages:
  - build
  - test
  - upload

variables:
  DOCKER_IMAGE_BASE: registry.icinga.com/build-docker

.build: &build
  stage: build
  tags:
    - docker
  image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
  script:
    - icinga-build-package
  cache:
    key: "${CI_JOB_NAME}"
    paths:
      - ccache/
      - 'icingaweb2-module-reporting.git'
  artifacts:
    paths:
      - build/*
    expire_in: 1 week

.test: &test
  stage: test
  tags:
    - docker
  image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
  script:
    - find build/
    - icinga-build-test

.upload: &upload
  stage: upload
  tags:
    - docker
  image: ${DOCKER_IMAGE_BASE}/upload
  script:
    - find build/
    - icinga-build-upload-aptly
  only:
    - tags

###################################
# EPEL
###################################

build/centos/7:
  <<: *build
  variables:
    DOCKER_IMAGE: centos/7

test/centos/7:
  <<: *test
  variables:
    DOCKER_IMAGE: centos/7
  dependencies:
    - build/centos/7

upload/epel/7:
  <<: *upload
  dependencies:
    - build/centos/7
###################################
# Fedora
###################################

Alexander A. Klimov's avatar
Alexander A. Klimov committed
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
build/fedora/33:
  <<: *build
  variables:
    DOCKER_IMAGE: fedora/33

test/fedora/33:
  <<: *test
  variables:
    DOCKER_IMAGE: fedora/33
  dependencies:
    - build/fedora/33

upload/fedora/33:
  <<: *upload
  dependencies:
    - build/fedora/33

Alexander A. Klimov's avatar
Alexander A. Klimov committed
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
build/fedora/32:
  <<: *build
  variables:
    DOCKER_IMAGE: fedora/32

test/fedora/32:
  <<: *test
  variables:
    DOCKER_IMAGE: fedora/32
  dependencies:
    - build/fedora/32

upload/fedora/32:
  <<: *upload
  dependencies:
    - build/fedora/32

Markus Frosch's avatar
Markus Frosch committed
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
build/fedora/30:
  <<: *build
  variables:
    DOCKER_IMAGE: fedora/30

test/fedora/30:
  <<: *test
  variables:
    DOCKER_IMAGE: fedora/30
  dependencies:
    - build/fedora/30

upload/fedora/30:
  <<: *upload
  dependencies:
    - build/fedora/30

build/fedora/29:
  <<: *build
  variables:
    DOCKER_IMAGE: fedora/29

test/fedora/29:
  <<: *test
  variables:
    DOCKER_IMAGE: fedora/29
  dependencies:
    - build/fedora/29

upload/fedora/29:
  <<: *upload
  dependencies:
    - build/fedora/29
###################################
# SLES
###################################

build/sles/15.0:
  <<: *build
  variables:
    DOCKER_IMAGE: sles/15.0

test/sles/15.0:
  <<: *test
  variables:
    DOCKER_IMAGE: sles/15.0
  dependencies:
    - build/sles/15.0

upload/SUSE/15.0:
  <<: *upload
  dependencies:
    - build/sles/15.0

build/sles/12.4:
  <<: *build
  variables:
    DOCKER_IMAGE: sles/12.4

test/sles/12.4:
  <<: *test
  variables:
    DOCKER_IMAGE: sles/12.4
  dependencies:
    - build/sles/12.4

upload/SUSE/12.4:
  <<: *upload
  dependencies:
    - build/sles/12.4
###################################
# openSUSE
###################################

build/opensuse/15.0:
  <<: *build
  variables:
    DOCKER_IMAGE: opensuse/15.0

test/opensuse/15.0:
  <<: *test
  variables:
    DOCKER_IMAGE: opensuse/15.0
  dependencies:
    - build/opensuse/15.0

upload/openSUSE/15.0:
  <<: *upload
  dependencies:
    - build/opensuse/15.0