-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
66 lines (59 loc) · 1.5 KB
/
.gitlab-ci.yml
File metadata and controls
66 lines (59 loc) · 1.5 KB
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
57
58
59
60
61
62
63
64
65
66
stages:
- build
- tag
- scan
include:
- project: 'utility/project-templates/ci-templates'
file: '/docker.yml'
build_backend:
stage: build
cache: [] # disable pipeline cache -- been bitten by a stale cache in the past
variables:
THE_IMAGE: ${CI_REGISTRY_IMAGE}/backend:$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA
before_script:
- export CI_PROJECT_DIR="${CI_PROJECT_DIR}/backend"
- echo "$CI_PROJECT_DIR"
extends: .kaniko_build
only:
- devel
build_mariadb:
stage: build
variables:
THE_IMAGE: ${CI_REGISTRY_IMAGE}/mariadb:$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA
before_script:
- export CI_PROJECT_DIR="${CI_PROJECT_DIR}/mariadb"
- echo "$CI_PROJECT_DIR"
extends: .kaniko_build
only:
- devel
build_redis:
stage: build
variables:
THE_IMAGE: ${CI_REGISTRY_IMAGE}/redis:$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA
before_script:
- export CI_PROJECT_DIR="${CI_PROJECT_DIR}/redis"
- echo "$CI_PROJECT_DIR"
extends: .kaniko_build
only:
- devel
scan_backend:
stage: scan
variables:
THE_IMAGE: ${CI_REGISTRY_IMAGE}/backend:$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA
extends: .docker_scan
only:
- devel
scan_mariadb:
stage: scan
variables:
THE_IMAGE: ${CI_REGISTRY_IMAGE}/mariadb:$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA
extends: .docker_scan
only:
- devel
scan_redis:
stage: scan
variables:
THE_IMAGE: ${CI_REGISTRY_IMAGE}/redis:$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA
extends: .docker_scan
only:
- devel