forked from chkp-dhouari/demo-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
45 lines (39 loc) · 872 Bytes
/
.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
image: alpine:latest
services:
- docker:dind
stages:
- build
- tests
Code-Scan:
stage: tests
image: checkpoint/shiftleft:latest
script:
- shiftleft code-scan -s ./
only:
- master
Iac-Assessment:
stage: tests
image: checkpoint/shiftleft:latest
script:
#- shiftleft -D iac-assessment -p ./terraform-template -r -64 -s critical
- shiftleft -D iac-assessment -p ./terraform-template -r -64
only:
- master
Image-Scan:
stage: tests
image: checkpoint/shiftleft:latest
script:
- shiftleft image-scan -i release/demo-app-image.tar
only:
- master
DockerBuild:
stage: build
image: docker:latest
artifacts:
expire_in: 2 hours
paths:
- release
script:
- docker build -t checkpoint/demo-app:latest .
- mkdir release
- docker save checkpoint/demo-app:latest -o release/demo-app-image.tar