Newer
Older
# image: node:18
#
variables:
GIT_DEPTH: 0
DEPLOY_PID: "649"
# Value must be the deploy project id
DEPLOYMENT_TRIGGER_TOKEN: "glptt-c4145ab70634cdbb509d4eafec72c51df82bd290"
# Value must be the deployment project pipeline trigger token, found/created at PROJECT > SETTINGS > CI/CD > Pipeline triggers
# Best to place this variable in Project >> Settings >> CI/CD >> Variables
SSH_CLONE_URL: 'git@code.vereign.com:gaiax/ocm/ocm-engine.git'
# Value must be the project ssh clone url
RUNNER_TAG: 'amd64-docker'
# Value must be the runner label/tag for the runner which will execute these jobs
PIPELINE_TRIGGERED: "no"
# Needed for pipeline automation
###
### ADD HELPERS
####
include:
- project: 'helpers/ci-helpers'
file:
- 'builds.yml'
- 'registries.yml'
- project: 'gaiax/helpers/mono-helpers'
file:
- 'builds/registries.yml'
- 'builds/builds.yml'
- 'projects/chart-trigger.yml'
- 'projects/notifiers.yml'
- 'deployments/triggers.yml'
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
stages:
# - helm-branch-check
- lint
- test
- build
- release
- docker
- registries
- helm
- deploy-test
- deploy-stage
- deploy-prod
.distributed:
cache:
- key:
files:
- yarn.lock
paths:
- '.yarn-cache/'
before_script:
- yarn install --cache-folder .yarn-cache --prefer-offline --frozen-lockfile
##
### Lint microservices
##
lint-agent:
image: node:18
extends: .distributed
tags:
- amd64-docker
stage: lint
rules:
- if: '$PIPELINE_TRIGGERED != "yes" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/agent/*
- apps/agent/deployment/*
- apps/agent/src/*
- apps/agent/src/app/*
- if: '$CI_COMMIT_TAG'
script:
- yarn nx run agent:lint --parallel=3
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
lint-attestation-manager:
image: node:18
extends: .distributed
tags:
- amd64-docker
stage: lint
rules:
- if: '$PIPELINE_TRIGGERED != "yes" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/attestation-manager/*
- apps/attestation-manager/deployment/*
- apps/attestation-manager/src/*
- apps/attestation-manager/src/app/*
- if: '$CI_COMMIT_TAG'
script:
- yarn nx run attestation-manager:lint --parallel=3
lint-connection-manager:
image: node:18
extends: .distributed
tags:
- amd64-docker
stage: lint
rules:
- if: '$PIPELINE_TRIGGERED != "yes" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/connection-manager/*
- apps/connection-manager/deployment/*
- apps/connection-manager/src/*
- apps/connection-manager/src/app/*
- if: '$CI_COMMIT_TAG'
script:
- yarn nx run connection-manager:lint --parallel=3
lint-gateway:
image: node:18
extends: .distributed
tags:
- amd64-docker
stage: lint
rules:
- if: '$PIPELINE_TRIGGERED != "yes" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/gateway/*
- apps/gateway/deployment/*
- apps/gateway/src/*
- apps/gateway/src/app/*
- if: '$CI_COMMIT_TAG'
script:
- yarn nx run gateway:lint --parallel=3
lint-proof-manager:
image: node:18
extends: .distributed
tags:
- amd64-docker
stage: lint
rules:
- if: '$PIPELINE_TRIGGERED != "yes" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/proof-manager/*
- apps/proof-manager/deployment/*
- apps/proof-manager/src/*
- apps/proof-manager/src/app/*
- if: '$CI_COMMIT_TAG'
script:
- yarn nx run proof-manager:lint --parallel=3
##
### Test microservices
##
test-agent:
image: node:18
extends: .distributed
tags:
- amd64-docker
rules:
- if: '$PIPELINE_TRIGGERED != "yes" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/agent/*
- apps/agent/deployment/*
- apps/agent/src/*
- apps/agent/src/app/*
- if: '$CI_COMMIT_TAG'
stage: test
script:
- yarn nx run agent:test --configuration=ci --parallel=3
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
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
test-attestation-manager:
image: node:18
extends: .distributed
tags:
- amd64-docker
rules:
- if: '$PIPELINE_TRIGGERED != "yes"'
changes:
- apps/attestation-manager/*
- apps/attestation-manager/deployment/*
- apps/attestation-manager/src/*
- apps/attestation-manager/src/app/*
- if: '$CI_COMMIT_TAG'
stage: test
script:
- yarn nx run attestation-manager:test --configuration=ci --parallel=3
test-connection-manager:
image: node:18
extends: .distributed
tags:
- amd64-docker
rules:
- if: '$PIPELINE_TRIGGERED != "yes"'
changes:
- apps/connection-manager/*
- apps/connection-manager/deployment/*
- apps/connection-manager/src/*
- apps/connection-manager/src/app/*
- if: '$CI_COMMIT_TAG'
stage: test
script:
- yarn nx run connection-manager:test --configuration=ci --parallel=3
test-gateway:
image: node:18
extends: .distributed
tags:
- amd64-docker
rules:
- if: '$PIPELINE_TRIGGERED != "yes"'
changes:
- apps/gateway/*
- apps/gateway/deployment/*
- apps/gateway/src/*
- apps/gateway/src/app/*
- if: '$CI_COMMIT_TAG'
stage: test
script:
- yarn nx run gateway:test --configuration=ci --parallel=3
test-proof-manager:
image: node:18
extends: .distributed
tags:
- amd64-docker
rules:
- if: '$PIPELINE_TRIGGERED != "yes"'
changes:
- apps/proof-manager/*
- apps/proof-manager/deployment/*
- apps/proof-manager/src/*
- apps/proof-manager/src/app/*
- if: '$CI_COMMIT_TAG'
stage: test
script:
- yarn nx run proof-manager:test --configuration=ci --parallel=3
##
### Bare microservice build
##
build-agent:
image: node:18
extends: .distributed
rules:
- if: '$PIPELINE_TRIGGERED != "yes" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/agent/*
- apps/agent/deployment/*
- apps/agent/src/*
- apps/agent/src/app/*
- if: '$CI_COMMIT_TAG'
tags:
- amd64-docker
stage: build
script:
# parallel is a CPU core count
- yarn nx run agent:build:production --parallel=3
artifacts:
paths:
- ./dist
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
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
build-attestation-manager:
image: node:18
extends: .distributed
rules:
- if: '$PIPELINE_TRIGGERED != "yes" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/attestation-manager/*
- apps/attestation-manager/deployment/*
- apps/attestation-manager/src/*
- apps/attestation-manager/src/app/*
- if: '$CI_COMMIT_TAG'
tags:
- amd64-docker
stage: build
script:
# parallel is a CPU core count
- yarn nx run attestation-manager:build:production --parallel=3
artifacts:
paths:
- ./dist
- ./package.json
- ./yarn.lock
expire_in: 1 day
build-connection-manager:
image: node:18
extends: .distributed
rules:
- if: '$PIPELINE_TRIGGERED != "yes" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/connection-manager/*
- apps/connection-manager/deployment/*
- apps/connection-manager/src/*
- apps/connection-manager/src/app/*
- if: '$CI_COMMIT_TAG'
tags:
- amd64-docker
stage: build
script:
# parallel is a CPU core count
- yarn nx run connection-manager:build:production --parallel=3
artifacts:
paths:
- ./dist
- ./package.json
- ./yarn.lock
expire_in: 1 day
build-gateway:
image: node:18
extends: .distributed
rules:
- if: '$PIPELINE_TRIGGERED != "yes" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/gateway/*
- apps/gateway/deployment/*
- apps/gateway/src/*
- apps/gateway/src/app/*
- if: '$CI_COMMIT_TAG'
tags:
- amd64-docker
stage: build
script:
# parallel is a CPU core count
- yarn nx run gateway:build:production --parallel=3
artifacts:
paths:
- ./dist
- ./package.json
- ./yarn.lock
expire_in: 1 day
build-proof-manager:
image: node:18
extends: .distributed
rules:
- if: '$PIPELINE_TRIGGERED != "yes" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/proof-manager/*
- apps/proof-manager/deployment/*
- apps/proof-manager/src/*
- apps/proof-manager/src/app/*
- if: '$CI_COMMIT_TAG'
tags:
- amd64-docker
stage: build
script:
# parallel is a CPU core count
- yarn nx run proof-manager:build:production --parallel=3
artifacts:
paths:
- ./dist
- ./package.json
- ./yarn.lock
expire_in: 1 day
##
### Docker build microservices
##
docker-agent:
extends: .docker-build
- if: '$PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/agent/*
- apps/agent/deployment/*
- apps/agent/src/*
- apps/agent/src/app/*
- if: '$CI_COMMIT_TAG'
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
docker-attestation-manager:
extends: .docker-build
stage: docker
variables:
APP: attestation-manager
rules:
- if: '$PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/attestation-manager/*
- apps/attestation-manager/deployment/*
- apps/attestation-manager/src/*
- apps/attestation-manager/src/app/*
- if: '$CI_COMMIT_TAG'
docker-connection-manager:
extends: .docker-build
stage: docker
variables:
APP: connection-manager
rules:
- if: '$PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/connection-manager/*
- apps/connection-manager/deployment/*
- apps/connection-manager/src/*
- apps/connection-manager/src/app/*
- if: '$CI_COMMIT_TAG'
docker-gateway:
extends: .docker-build
stage: docker
variables:
APP: gateway
rules:
- if: '$PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/gateway/*
- apps/gateway/deployment/*
- apps/gateway/src/*
- apps/gateway/src/app/*
- if: '$CI_COMMIT_TAG'
docker-proof-manager:
extends: .docker-build
stage: docker
variables:
APP: proof-manager
rules:
- if: '$PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/proof-manager/*
- apps/proof-manager/deployment/*
- apps/proof-manager/src/*
- apps/proof-manager/src/app/*
- if: '$CI_COMMIT_TAG'
##
### Push to registries
##
google-image-agent:
- if: '$CI_COMMIT_TAG == null && $PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/agent/*
- apps/agent/deployment/*
- apps/agent/src/*
- apps/agent/src/app/*
- if: '$CI_COMMIT_TAG'
google-image-attestation-manager:
extends: .cloud
stage: registries
variables:
APP: attestation-manager
rules:
- if: '$CI_COMMIT_TAG == null && $PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/attestation-manager/*
- apps/attestation-manager/deployment/*
- apps/attestation-manager/src/*
- apps/attestation-manager/src/app/*
- if: '$CI_COMMIT_TAG'
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
google-image-connection-manager:
extends: .cloud
stage: registries
variables:
APP: connection-manager
rules:
- if: '$CI_COMMIT_TAG == null && $PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/connection-manager/*
- apps/connection-manager/deployment/*
- apps/connection-manager/src/*
- apps/connection-manager/src/app/*
- if: '$CI_COMMIT_TAG'
google-image-gateway:
extends: .cloud
stage: registries
variables:
APP: gateway
rules:
- if: '$CI_COMMIT_TAG == null && $PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/gateway/*
- apps/gateway/deployment/*
- apps/gateway/src/*
- apps/gateway/src/app/*
- if: '$CI_COMMIT_TAG'
google-image-proof-manager:
extends: .cloud
stage: registries
variables:
APP: proof-manager
rules:
- if: '$CI_COMMIT_TAG == null && $PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/proof-manager/*
- apps/proof-manager/deployment/*
- apps/proof-manager/src/*
- apps/proof-manager/src/app/*
- if: '$CI_COMMIT_TAG'
##
### Configure helm
##
agent:
extends: .chart-trigger-agent
stage: helm
rules:
- if: '$CI_COMMIT_TAG == null && $PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/agent/*
- apps/agent/deployment/*
- apps/agent/src/*
- apps/agent/src/app/*
- if: '$CI_COMMIT_TAG'
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
attestation-manager:
extends: .chart-trigger-attestation-manager
stage: helm
rules:
- if: '$CI_COMMIT_TAG == null && $PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/attestation-manager/*
- apps/attestation-manager/deployment/*
- apps/attestation-manager/src/*
- apps/attestation-manager/src/app/*
- if: '$CI_COMMIT_TAG'
connection-manager:
extends: .chart-trigger-connection-manager
stage: helm
rules:
- if: '$CI_COMMIT_TAG == null && $PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/connection-manager/*
- apps/connection-manager/deployment/*
- apps/connection-manager/src/*
- apps/connection-manager/src/app/*
- if: '$CI_COMMIT_TAG'
gateway:
extends: .chart-trigger-gateway
stage: helm
rules:
- if: '$CI_COMMIT_TAG == null && $PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/gateway/*
- apps/gateway/deployment/*
- apps/gateway/src/*
- apps/gateway/src/app/*
- if: '$CI_COMMIT_TAG'
proof-manager:
extends: .chart-trigger-proof-manager
stage: helm
rules:
- if: '$CI_COMMIT_TAG == null && $PIPELINE_TRIGGERED == "no" && $CI_PIPELINE_SOURCE != "merge_request_event"'
changes:
- apps/proof-manager/*
- apps/proof-manager/deployment/*
- apps/proof-manager/src/*
- apps/proof-manager/src/app/*
- if: '$CI_COMMIT_TAG'
##
### Deploy automatically on Test Environment
##
agent-test ocm:
stage: deploy-test
extends: .test-agent-ocm-one
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "agent" && $CI_PIPELINE_SOURCE != "merge_request_event"'
when: manual
agent-test ocm-two:
stage: deploy-test
extends: .test-agent-ocm-two
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "agent" && $CI_PIPELINE_SOURCE != "merge_request_event"'
attestation-manager-test ocm:
stage: deploy-test
extends: .test-attestation-manager-ocm-one
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "attestation-manager" && $CI_PIPELINE_SOURCE != "merge_request_event"'
when: manual
597
598
599
600
601
602
603
604
605
606
607
608
609
610
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
attestation-manager-test ocm-two:
stage: deploy-test
extends: .test-attestation-manager-ocm-two
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "attestation-manager" && $CI_PIPELINE_SOURCE != "merge_request_event"'
when: manual
connection-manager-test ocm:
stage: deploy-test
extends: .test-connection-manager-ocm-one
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "connection-manager" && $CI_PIPELINE_SOURCE != "merge_request_event"'
when: manual
connection-manager-test ocm-two:
stage: deploy-test
extends: .test-connection-manager-ocm-two
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "connection-manager" && $CI_PIPELINE_SOURCE != "merge_request_event"'
when: manual
gateway-test ocm:
stage: deploy-test
extends: .test-gateway-ocm-one
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "gateway" && $CI_PIPELINE_SOURCE != "merge_request_event"'
when: manual
gateway-test ocm-two:
stage: deploy-test
extends: .test-gateway-ocm-two
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "gateway" && $CI_PIPELINE_SOURCE != "merge_request_event"'
when: manual
proof-manager-test ocm:
stage: deploy-test
extends: .test-proof-manager-ocm-one
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "proof-manager" && $CI_PIPELINE_SOURCE != "merge_request_event"'
when: manual
proof-manager-test ocm-two:
stage: deploy-test
extends: .test-proof-manager-ocm-two
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "proof-manager" && $CI_PIPELINE_SOURCE != "merge_request_event"'
when: manual
##
### Deploy on prod
##
agent-prod ocm:
stage: deploy-prod
extends: .prod-agent-ocm-one
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "agent" && $CI_PIPELINE_SOURCE != "merge_request_event" && $MAIN_PROD == "yes" && $GITLAB_USER_LOGIN =~ $AUTORIZED_USERS'
when: manual
agent-prod ocm-two:
stage: deploy-prod
extends: .prod-agent-ocm-two
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "agent" && $CI_PIPELINE_SOURCE != "merge_request_event" && $MAIN_PROD == "yes" && $GITLAB_USER_LOGIN =~ $AUTORIZED_USERS'
attestation-manager-prod ocm:
stage: deploy-prod
extends: .prod-attestation-manager-ocm-one
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "attestation-manager" && $CI_PIPELINE_SOURCE != "merge_request_event" && $MAIN_PROD == "yes" && $GITLAB_USER_LOGIN =~ $AUTORIZED_USERS'
when: manual
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
attestation-manager-prod ocm-two:
stage: deploy-prod
extends: .prod-attestation-manager-ocm-two
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "attestation-manager" && $CI_PIPELINE_SOURCE != "merge_request_event" && $MAIN_PROD == "yes" && $GITLAB_USER_LOGIN =~ $AUTORIZED_USERS'
when: manual
connection-manager-prod ocm:
stage: deploy-prod
extends: .prod-connection-manager-ocm-one
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "connection-manager" && $CI_PIPELINE_SOURCE != "merge_request_event" && $MAIN_PROD == "yes" && $GITLAB_USER_LOGIN =~ $AUTORIZED_USERS'
when: manual
connection-manager-prod ocm-two:
stage: deploy-prod
extends: .prod-connection-manager-ocm-two
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "connection-manager" && $CI_PIPELINE_SOURCE != "merge_request_event" && $MAIN_PROD == "yes" && $GITLAB_USER_LOGIN =~ $AUTORIZED_USERS'
when: manual
gateway-prod ocm:
stage: deploy-prod
extends: .prod-gateway-ocm-one
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "gateway" && $CI_PIPELINE_SOURCE != "merge_request_event" && $MAIN_PROD == "yes" && $GITLAB_USER_LOGIN =~ $AUTORIZED_USERS'
when: manual
gateway-prod ocm-two:
stage: deploy-prod
extends: .prod-gateway-ocm-two
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "gateway" && $CI_PIPELINE_SOURCE != "merge_request_event" && $MAIN_PROD == "yes" && $GITLAB_USER_LOGIN =~ $AUTORIZED_USERS'
when: manual
proof-manager-prod ocm:
stage: deploy-prod
extends: .prod-proof-manager-ocm-one
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "proof-manager" && $CI_PIPELINE_SOURCE != "merge_request_event" && $MAIN_PROD == "yes" && $GITLAB_USER_LOGIN =~ $AUTORIZED_USERS'
when: manual
proof-manager-prod ocm-two:
stage: deploy-prod
extends: .prod-proof-manager-ocm-two
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "proof-manager" && $CI_PIPELINE_SOURCE != "merge_request_event" && $MAIN_PROD == "yes" && $GITLAB_USER_LOGIN =~ $AUTORIZED_USERS'
when: manual
##
### Deploy manual on Stage Environment
##
# deploy agent stage:
# stage: deploy-stage
# only:
# - master
# - tags
# changes:
# - apps/agent/*
# tags:
# - amd64-docker
# script:
# - echo "create docker file under agent/deployment/ci"
# when: manual
# deploy engine stage:
# stage: deploy-stage
# only:
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
# - master
# - tags
# changes:
# - apps/engine/*
# tags:
# - amd64-docker
# script:
# - echo "create docker file under agent/deployment/ci"
# when: manual
# ##
# ### Deploy manual on Prod Environment
# ##
# deploy agent prod:
# stage: deploy-prod
# only:
# refs:
# - tags
# changes:
# - apps/engine/*
# tags:
# - amd64-docker
# script:
# - echo "create docker file under agent/deployment/ci"
# when: manual
# deploy engine prod:
# stage: deploy-prod
# only:
# refs:
# - tags
# changes:
# - apps/engine/*
# tags:
# - amd64-docker
# script:
# - echo "create docker file under agent/deployment/ci"
# when: manual
##
### Commit Linters and Changelog steps
##
commit lint:
image: node:18
extends: .distributed
stage: lint
tags:
- amd64-docker
script:
- echo "${CI_MERGE_REQUEST_TITLE}" | npx commitlint
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'main'
changelog:
extends: .distributed
stage: release
tags:
- amd64-docker
script:
- npx semantic-release
rules:
- if: '$PIPELINE_TRIGGERED != "yes" && $CI_COMMIT_BRANCH == "main"'