@@ -3,10 +3,35 @@ stages:
33 - test
44 - report
55
6+ workflow :
7+ rules :
8+ - if : $CI_PIPELINE_SOURCE == "merge_request_event"
9+ - if : $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
10+ when : never
11+ - if : $CI_COMMIT_BRANCH
12+
613variables :
714 NODE_VERSION : " 24.12.0"
815
9- build :
16+ include :
17+ - component : gitlab.com/flarenetwork/ci-components-private/ai-code-review@1
18+ inputs :
19+ use_cursor_cli : true
20+ rules_condition : $CI_MERGE_REQUEST_IID != null && $GITLAB_USER_NAME != "SealBot" && $CI_MERGE_REQUEST_EVENT_TYPE != "merge_train"
21+ rules_when : always
22+ - component : gitlab.com/flarenetwork/ci-components-private/release-image@release-image-commit-hash
23+ inputs :
24+ job_name_suffix : " -gitlab-cr"
25+ image_name : " verifier-indexer-api"
26+ image_tag_source : " commit_hash"
27+ build_tags : ["flarenetwork-md"]
28+ stage : build
29+ push_to_staging : true
30+ push_to_production_on_protected : false
31+ staging_registry : " registry.gitlab.com/flarenetwork/fdc"
32+ rules_condition : $CI_MERGE_REQUEST_IID != null
33+
34+ build-app :
1035 stage : build
1136 image : node:${NODE_VERSION}
1237 before_script :
@@ -17,25 +42,6 @@ build:
1742 paths :
1843 - dist/
1944
20- include :
21- - component : gitlab.com/flarenetwork/ci-components-private/ai-code-review@1
22- inputs :
23- rules_condition : $CI_MERGE_REQUEST_IID != null && $GITLAB_USER_NAME != "SealBot" && $CI_MERGE_REQUEST_EVENT_TYPE != "merge_train"
24- rules_when : always
25-
26- build-docker :
27- stage : build
28- image :
29- name : gcr.io/kaniko-project/executor:debug
30- entrypoint : [""]
31- script :
32- - mkdir -p /kaniko/.docker
33- - echo "$CI_COMMIT_SHA" > COMMIT_HASH
34- - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
35- - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH --cache=true --cache-ttl=120h
36- only :
37- - branches
38-
3945e2e_test :
4046 stage : test
4147 image : node:${NODE_VERSION}
0 commit comments