-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
41 lines (38 loc) · 1006 Bytes
/
.gitlab-ci.yml
File metadata and controls
41 lines (38 loc) · 1006 Bytes
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
variables:
DOCKER_DRIVER: overlay2
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
when: never
include:
- template: Security/SAST.gitlab-ci.yml
rules:
- if: $SECURITY_AUDIT != "1"
- local: 'engine/.gitlab-ci.yml'
rules:
- if: $SECURITY_AUDIT != "1"
- local: 'ui/.gitlab-ci.yml'
rules:
- if: $SECURITY_AUDIT != "1"
- local: '.gitlab-ci-security.yml'
rules:
- if: $SECURITY_AUDIT == "1"
- project: 'postgres-ai/infra'
file: '/ci/templates/approval-check.yml'
rules:
- if: $SECURITY_AUDIT != "1"
empty-job:
stage: test
script:
- echo 'success'
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: always
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:
- engine/**/*
- ui/**/*
when: never