-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
51 lines (44 loc) · 1.07 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
include:
- project: 'dev-infra/gitlab-ci-templates'
ref: master
file: 'jobs/.kaniko-container-build.yaml'
- project: 'dev-infra/gitlab-ci-templates'
ref: master
file: 'jobs/.trivy-container-scan.yaml'
- project: 'dev-infra/gitlab-ci-templates'
ref: master
file: 'jobs/.docker-hadolint.yaml'
- project: 'dev-infra/gitlab-ci-templates'
ref: master
file: 'jobs/.push-container.yaml'
- project: 'dev-infra/gitlab-ci-templates'
ref: master
file: 'jobs/.trufflehog-scan.yaml'
stages:
- Lint
- Build
- Security
- Promote
variables:
DOCKER_IMAGE_NAME: convergencelabs-com-www
Dockerfile Lint:
extends: .docker-hadolint
stage: Lint
Build Container:
extends: .kaniko-container-build
stage: Build
variables:
IMAGE_NAME: $DOCKER_IMAGE_NAME
Trivy Scan:
extends: .trivy-container-scan
stage: Security
#Truffle Hog:
# extends: .truffle-hog
# stage: Security
Push Latest to Nexus:
extends: .nexus-push-container
stage: Promote
variables:
IMAGE_NAME: $DOCKER_IMAGE_NAME
IMAGE_TAG: "latest"
AUTO: "true"