.gitlab-ci.yml 21.4 KB
Newer Older
Alicja Reniewicz's avatar
Alicja Reniewicz 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
variables:
  DOCKER_PUSH: "false"
  LOCAL_REPO: "127.0.0.1:5000"
  DOCKER_REPO: "gitlab.ow2.org:4567"
  MAVEN_IMAGE: "maven:3.5.2-jdk-8"
  DOCKER_DIND_IMAGE: "docker:19.03.1"
  DOCKER_DIND_SERVICE: "$DOCKER_DIND_IMAGE-dind"
  DOCKER_DRIVER: overlay
  DOCKER_TLS_CERTDIR: "/certs"
  
  MAVEN_OPTS: "-Xmx2048m -Xms2048m"
  SKIP_TESTS: "true"

  DOCKER_CLI: "docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v $CI_PROJECT_DIR/maven_repo:/root/.m2 -w /usr/src/mymaven -v $CI_PROJECT_DIR:/usr/src/mymaven --env-file .env.list $MAVEN_IMAGE"
  MELODIC_UPPERWARE_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -f pom.xml"
  UPPERWARE_METAMODEL_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -f upperware_metamodel/pom.xml"
  JWT_COMMONS_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -f jwt-commons/pom.xml"
  MELODIC_COMMONS_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -f melodic-commons/pom.xml"
  MELODIC_CACHE_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -f melodic-cache/pom.xml"

  DLMS_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f dlms/pom.xml"
  DLMS_UTILITY_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -f dlms/DLMSUtility/pom.xml"
  DLMS_CONTROLLER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f dlms/DLMSController/pom.xml"
  DLMS_WEB_SERVICE_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f dlms/DLMSWebService/pom.xml"

  PENALTY_CALCULATOR_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -f penalty-calculator/pom.xml"
  JWT_SERVER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f jwt-server/pom.xml"
  UTILITY_GENERATOR_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -f utility-generator/pom.xml"
29
30
31

  ZPP_SOLVER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -f zpp-solver/pom.xml"

Alicja Reniewicz's avatar
Alicja Reniewicz committed
32
33
  ADAPTER_SERVER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f adapter/pom.xml"
  CP_GENERATOR_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f cp_generator/pom.xml"
34

Alicja Reniewicz's avatar
Alicja Reniewicz committed
35
  CP_SOLVER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f cp-solver/pom.xml"
36
37
38
  GEN_SOLVER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f zpp-solver/genetic-solver/pom.xml"
  NC_SOLVER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f zpp-solver/node-candidates-solver/pom.xml"
  PT_SOLVER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f zpp-solver/pt-solver/pom.xml"
39
  MCTS_SOLVER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f zpp-solver/mcts-solver/pom.xml"
40

Alicja Reniewicz's avatar
Alicja Reniewicz committed
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
  DLMS_AGENT_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -f dlmsAgent/pom.xml"

  EMS_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f event-management/pom.xml"
  EMS_UTIL_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f event-management/util/pom.xml"
  EMS_BROKER_CLIENT_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f event-management/broker-client/pom.xml"
  EMS_BROKER_CEP_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f event-management/broker-cep/pom.xml"
  EMS_BAGUETTE_CLIENT_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f event-management/baguette-client/pom.xml"
  EMS_BAGUETTE_CLIENT_INSTALL_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f event-management/baguette-client-install/pom.xml"
  EMS_BAGUETTE_SERVER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f event-management/baguette-server/pom.xml"
  EMS_TRANSLATOR_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f event-management/translator/pom.xml"
  EMS_SERVER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f event-management/control-service/pom.xml"

  METASOLVER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f meta_solver/pom.xml"
  MQ_ADAPTER_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f mq-http-adapter/pom.xml"
  GUI_BACKEND_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f gui-backend/pom.xml"
Maria C's avatar
Maria C committed
56
57
58

  FUNCTIONIZER_TESTING_TOOL_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -Ddocker.push=false -f functionizer-testing-tool/pom.xml"

Alicja Reniewicz's avatar
Alicja Reniewicz committed
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
cache:
  paths:
    - maven_repo/

before_script:
  - mkdir -p $HOME/.m2
  - echo '<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                            https://maven.apache.org/xsd/settings-1.0.0.xsd">
                <localRepository>'$CI_PROJECT_DIR'/maven_repo</localRepository>
          </settings>' > $HOME/.m2/settings.xml
  - echo "MAVEN_OPTS=$MAVEN_OPTS" > $CI_PROJECT_DIR/.env.list

after_script:
  - echo '=========================================================================='
  - docker image ls
  - echo '=========================================================================='

build:melodic-upperware:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $MELODIC_UPPERWARE_CLI -Pwithout-docker clean install
  artifacts:
    paths: 
    - $CI_PROJECT_DIR/upperware/target

build:upperware-metamodel:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $UPPERWARE_METAMODEL_CLI -Pwithout-docker clean install
  artifacts:
    paths: 
    - $CI_PROJECT_DIR/upperware_metamodel/target

build:jwt-commons:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $JWT_COMMONS_CLI -Pwithout-docker clean install
  artifacts:
    paths: 
    - $CI_PROJECT_DIR/jwt-commons/target

build:melodic-commons:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $MELODIC_COMMONS_CLI -Pwithout-docker clean install
  artifacts:
    paths: 
    - $CI_PROJECT_DIR/melodic-commons/target

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
build:melodic-cache:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $MELODIC_CACHE_CLI -Pwithout-docker clean install
  artifacts:
    paths:
      - $CI_PROJECT_DIR/melodic-cache/target

build:dlms:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $DLMS_CLI -Pwithout-docker clean install
  artifacts:
    paths:
      - $CI_PROJECT_DIR/dlms/target

build:dlms-utility:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $DLMS_UTILITY_CLI -Pwithout-docker clean install
  artifacts:
    paths:
      - $CI_PROJECT_DIR/dlms/DLMSUtility/target

build:penalty-calculator:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $PENALTY_CALCULATOR_CLI -Pwithout-docker clean install
  artifacts:
    paths:
      - $CI_PROJECT_DIR/penalty-calculator/target

build:utility-generator:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $UTILITY_GENERATOR_CLI -Pwithout-docker clean install
  artifacts:
    paths:
      - $CI_PROJECT_DIR/utility-generator/target

build:cp-solver:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $CP_SOLVER_CLI -Pwithout-docker clean install
  artifacts:
    paths:
      - $CI_PROJECT_DIR/cp-solver/target

build:zpp-solver:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $ZPP_SOLVER_CLI -Pwithout-docker clean install
  artifacts:
    paths:
      - $CI_PROJECT_DIR/zpp-solver/target

Alicja Reniewicz's avatar
Alicja Reniewicz committed
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
build:ems:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $EMS_CLI -Pwithout-docker clean install
  artifacts:
    paths: 
    - $CI_PROJECT_DIR/event-management/target

build:ems-util:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $EMS_UTIL_CLI -Pwithout-docker clean install
  artifacts:
    paths: 
    - $CI_PROJECT_DIR/event-management/util/target

build:ems-broker-client:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $EMS_BROKER_CLIENT_CLI -Pwithout-docker clean install
  artifacts:
    paths: 
    - $CI_PROJECT_DIR/event-management/broker-client/target

build:ems-broker-cep:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $EMS_BROKER_CEP_CLI -Pwithout-docker clean install
  artifacts:
    paths: 
    - $CI_PROJECT_DIR/event-management/broker-cep/target

build:ems-baguette-client:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $EMS_BAGUETTE_CLIENT_CLI -Pwithout-docker clean install
  
build:ems-baguette-server:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $EMS_BAGUETTE_SERVER_CLI -Pwithout-docker clean install
  artifacts:
    paths: 
    - $CI_PROJECT_DIR/event-management/baguette-server/target

build:ems-baguette-client-install:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $EMS_BAGUETTE_CLIENT_INSTALL_CLI -Pwithout-docker clean install
  artifacts:
    paths: 
    - $CI_PROJECT_DIR/event-management/baguette-client-install/target

build:ems-translator:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $EMS_TRANSLATOR_CLI -Pwithout-docker clean install
  artifacts:
    paths: 
    - $CI_PROJECT_DIR/event-management/translator/target

246
247
248
249
250
251
252
253
254
build:ems-server:
  stage: build
  image: $MAVEN_IMAGE
  script:
    - $EMS_SERVER_CLI -Pwithout-docker clean install
  artifacts:
    paths:
    - $CI_PROJECT_DIR/event-management/control-service/target

Alicja Reniewicz's avatar
Alicja Reniewicz committed
255
256
deploy:melodic-upperware:
  stage: deploy
257
258
259
260
  only: 
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
261
262
263
264
265
266
267
268
269
270
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies: 
    - build:melodic-upperware
  script:
    - $DOCKER_CLI $MELODIC_UPPERWARE_CLI deploy

deploy:upperware-metamodel:
  stage: deploy
271
272
273
274
  only: 
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
275
276
277
278
279
280
281
282
283
284
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies: 
    - build:upperware-metamodel
  script:
    - $DOCKER_CLI $UPPERWARE_METAMODEL_CLI deploy

deploy:jwt-commons:
  stage: deploy
285
286
287
288
  only: 
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
289
290
291
292
293
294
295
296
297
298
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies: 
    - build:jwt-commons
  script:
    - $DOCKER_CLI $JWT_COMMONS_CLI deploy

deploy:melodic-commons:
  stage: deploy
299
300
301
302
  only: 
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
303
304
305
306
307
308
309
310
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies: 
    - build:melodic-commons
  script:
    - $DOCKER_CLI $MELODIC_COMMONS_CLI deploy

311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
deploy:melodic-cache:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies:
    - build:melodic-cache
  script:
    - $DOCKER_CLI $MELODIC_CACHE_CLI deploy

deploy:dlms:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies:
    - build:dlms
  script:
    - $DOCKER_CLI $DLMS_CLI deploy

deploy:dlms-utility:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies:
    - build:dlms-utility
  script:
    - $DOCKER_CLI $DLMS_UTILITY_CLI deploy

deploy:dlms-controller:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  script:
    - $DOCKER_CLI $DLMS_CONTROLLER_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/dlms-controller:unknown $CI_REGISTRY_IMAGE/dlms-controller:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/dlms-controller:$CI_COMMIT_BRANCH

deploy:dlms-webservice:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  script:
    - $DOCKER_CLI $DLMS_WEB_SERVICE_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/dlms-webservice:unknown $CI_REGISTRY_IMAGE/dlms-webservice:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/dlms-webservice:$CI_COMMIT_BRANCH

deploy:penalty-calculator:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies:
    - build:penalty-calculator
  script:
    - $DOCKER_CLI $PENALTY_CALCULATOR_CLI deploy
Alicja Reniewicz's avatar
Alicja Reniewicz committed
396
397
398

deploy:jwt-server:
  stage: deploy
399
400
401
402
  only: 
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
403
404
405
406
407
408
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  script: 
    - $DOCKER_CLI $JWT_SERVER_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
Alicja Reniewicz's avatar
Alicja Reniewicz committed
409
    - docker tag $LOCAL_REPO/melodic/jwtserver:unknown $CI_REGISTRY_IMAGE/jwt-server:$CI_COMMIT_BRANCH
Alicja Reniewicz's avatar
Alicja Reniewicz committed
410
411
    - docker push $CI_REGISTRY_IMAGE/jwt-server:$CI_COMMIT_BRANCH

412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
deploy:utility-generator:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies:
    - build:utility-generator
  script:
    - $DOCKER_CLI $UTILITY_GENERATOR_CLI deploy

deploy:zpp-solver:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies:
    - build:zpp-solver
  script:
    - $DOCKER_CLI $ZPP_SOLVER_CLI deploy

deploy:adapter:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  script:
    - $DOCKER_CLI $ADAPTER_SERVER_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/adapter:unknown $CI_REGISTRY_IMAGE/adapter:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/adapter:$CI_COMMIT_BRANCH

deploy:cp-generator:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  script:
    - $DOCKER_CLI $CP_GENERATOR_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/generator:unknown $CI_REGISTRY_IMAGE/generator:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/generator:$CI_COMMIT_BRANCH

deploy:cp-solver:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  script:
    - $DOCKER_CLI $CP_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/cpsolver:unknown $CI_REGISTRY_IMAGE/cpsolver:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/cpsolver:$CI_COMMIT_BRANCH

Alicja Reniewicz's avatar
Alicja Reniewicz committed
485
486
deploy:ems:
  stage: deploy
mriedl's avatar
mriedl committed
487
  only:
488
489
490
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
491
492
493
494
495
496
497
498
499
500
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies: 
    - build:ems
  script:
    - $DOCKER_CLI $EMS_CLI deploy

deploy:ems-util:
  stage: deploy
mriedl's avatar
mriedl committed
501
  only:
502
503
504
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
505
506
507
508
509
510
511
512
513
514
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies: 
    - build:ems-util
  script:
    - $DOCKER_CLI $EMS_UTIL_CLI deploy

deploy:ems-broker-client:
  stage: deploy
mriedl's avatar
mriedl committed
515
  only:
516
517
518
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
519
520
521
522
523
524
525
526
527
528
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies: 
    - build:ems-broker-client
  script:
    - $DOCKER_CLI $EMS_BROKER_CLIENT_CLI deploy

deploy:ems-broker-cep:
  stage: deploy
mriedl's avatar
mriedl committed
529
  only:
530
531
532
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
533
534
535
536
537
538
539
540
541
542
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies: 
    - build:ems-broker-cep
  script:
    - $DOCKER_CLI $EMS_BROKER_CEP_CLI deploy

deploy:ems-baguette-client:
  stage: deploy
mriedl's avatar
mriedl committed
543
  only:
544
545
546
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
547
548
549
550
551
552
553
554
555
556
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies: 
    - build:ems-baguette-client
  script:
    - $DOCKER_CLI $EMS_BAGUETTE_CLIENT_CLI deploy

deploy:ems-baguette-server:
  stage: deploy
mriedl's avatar
mriedl committed
557
  only:
558
559
560
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
561
562
563
564
565
566
567
568
569
570
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies: 
    - build:ems-baguette-server
  script:
    - $DOCKER_CLI $EMS_BAGUETTE_SERVER_CLI deploy

deploy:ems-baguette-client-install:
  stage: deploy
mriedl's avatar
mriedl committed
571
  only:
572
573
574
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
575
576
577
578
579
580
581
582
583
584
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies: 
    - build:ems-baguette-client-install
  script:
    - $DOCKER_CLI $EMS_BAGUETTE_CLIENT_INSTALL_CLI deploy

deploy:ems-translator:
  stage: deploy
mriedl's avatar
mriedl committed
585
  only:
586
587
588
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
589
590
591
592
593
594
595
596
597
598
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies: 
    - build:ems-translator
  script:
    - $DOCKER_CLI $EMS_TRANSLATOR_CLI deploy

deploy:ems-server:
  stage: deploy
mriedl's avatar
mriedl committed
599
  only:
600
601
602
    - master
    - rc3.0
    - rc3.1
Alicja Reniewicz's avatar
Alicja Reniewicz committed
603
604
605
606
607
608
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  script: 
    - $DOCKER_CLI $EMS_SERVER_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
609
    - docker tag $LOCAL_REPO/melodic/ems-server:UNKNOWN $CI_REGISTRY_IMAGE/ems-server:$CI_COMMIT_BRANCH
Alicja Reniewicz's avatar
Alicja Reniewicz committed
610
    - docker push $CI_REGISTRY_IMAGE/ems-server:$CI_COMMIT_BRANCH
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738

deploy:gen-solver:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies:
    - build:cp-solver
  script:
    - $DOCKER_CLI $GEN_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/geneticsolver:unknown $CI_REGISTRY_IMAGE/geneticsolver:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/geneticsolver:$CI_COMMIT_BRANCH

deploy:metasolver:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  script:
    - $DOCKER_CLI $METASOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/metasolver:unknown $CI_REGISTRY_IMAGE/metasolver:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/metasolver:$CI_COMMIT_BRANCH

deploy:mq-adapter:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  script:
    - $DOCKER_CLI $MQ_ADAPTER_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/mq-http-adapter:unknown $CI_REGISTRY_IMAGE/mq-http-adapter:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/mq-http-adapter:$CI_COMMIT_BRANCH

deploy:nc-solver:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies:
    - build:cp-solver
  script:
    - $DOCKER_CLI $NC_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/ncsolver:unknown $CI_REGISTRY_IMAGE/ncsolver:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/ncsolver:$CI_COMMIT_BRANCH

deploy:pt-solver:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies:
    - build:cp-solver
  script:
    - $DOCKER_CLI $PT_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/ptsolver:unknown $CI_REGISTRY_IMAGE/ptsolver:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/ptsolver:$CI_COMMIT_BRANCH

deploy:mcts-solver:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  dependencies:
    - build:cp-solver
  script:
    - $DOCKER_CLI $MCTS_SOLVER_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/mctssolver:unknown $CI_REGISTRY_IMAGE/mctssolver:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/mctssolver:$CI_COMMIT_BRANCH

deploy:gui-backend:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  script:
    - $DOCKER_CLI $GUI_BACKEND_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/gui-backend:unknown $CI_REGISTRY_IMAGE/gui-backend:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/gui-backend:$CI_COMMIT_BRANCH

deploy:functionizer-testing-tool:
  stage: deploy
  only:
    - master
    - rc3.0
    - rc3.1
  image: $DOCKER_DIND_IMAGE
  services:
    - $DOCKER_DIND_SERVICE
  script:
    - $DOCKER_CLI $FUNCTIONIZER_TESTING_TOOL_CLI -Ddocker.imagePrefix=melodic/ clean install
    - echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $CI_REGISTRY -u $K8S_SECRET_DOCKER_USER --password-stdin
    - docker tag $LOCAL_REPO/melodic/functionizer-testing-tool:unknown $CI_REGISTRY_IMAGE/functionizer-testing-tool:$CI_COMMIT_BRANCH
    - docker push $CI_REGISTRY_IMAGE/functionizer-testing-tool:$CI_COMMIT_BRANCH