-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
56 lines (52 loc) · 2.36 KB
/
.gitlab-ci.yml
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
# You can override the included template(s) by including variable overrides
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
stages:
- publish
- test_functions
- deploy_functions
include:
- "/functions/public/Service/GET/LegacyV1/.gitlab-ci.yml"
# - "/functions/public/Service/GET/v1/.gitlab-ci.yml"
- "/functions/public/Service/GET/v2/.gitlab-ci.yml"
# - "/functions/public/Case/GET/v1/.gitlab-ci.yml"
- "/functions/public/Case/GET/v2/.gitlab-ci.yml"
- "/functions/internal/Spam/DELETE/v1/.gitlab-ci.yml"
- "/functions/internal/Spam/POST/v1/.gitlab-ci.yml"
# - "/functions/internal/AppDB/Exporter/.gitlab-ci.yml"
- "/functions/internal/AppDB/Version/GET/v1/.gitlab-ci.yml"
- "/functions/public/Document/GET/v1/.gitlab-ci.yml"
- "/functions/public/Point/GET/v1/.gitlab-ci.yml"
- "/functions/internal/Point/POST/v1/.gitlab-ci.yml"
- "/functions/internal/DocbotRecord/GET/v1/.gitlab-ci.yml"
- "/functions/internal/DocbotRecord/POST/v1/.gitlab-ci.yml"
build_parser:
stage: deploy_functions
image:
name: gcr.io/kaniko-project/executor:v1.9.0-debug
entrypoint:
- ''
script:
- /kaniko/executor --context "${CI_PROJECT_DIR}/parser" --dockerfile "${CI_PROJECT_DIR}/parser/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}/parser/v2:latest"
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- parser/**/*
build_spamai:
stage: deploy_functions
image:
name: gcr.io/kaniko-project/executor:v1.9.0-debug
entrypoint:
- ''
script:
- /kaniko/executor --context "${CI_PROJECT_DIR}/spam_ai" --dockerfile "${CI_PROJECT_DIR}/spam_ai/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}/spamai:latest"
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- spam_ai/**/*