-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
55 lines (49 loc) · 1.2 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
image: docker:latest
services:
- docker:dind
variables:
DOCKER_HOST: "tcp://docker:2375"
DOCKER_TLS_CERTDIR: ""
DOCKER_DRIVER: overlay2
CONTAINER_IMAGE: beo1975/implementation-progress:1.4.0
scan-code:
stage: .pre
image:
name: "zricethezav/gitleaks:latest"
entrypoint: [""]
script:
- gitleaks detect --verbose --redact --no-git --source="$CI_PROJECT_DIR"
tags:
- docker
scan-vulnerabilities:
stage: .pre
image:
name: "aquasec/trivy:latest"
entrypoint: [""]
script:
- trivy fs --no-progress --ignore-unfixed --exit-code 0 $CI_PROJECT_DIR
allow_failure: true
tags:
- docker
test-code:
image: eclipse-temurin:21.0.5_11-jdk-jammy
stage: test
script:
- chmod +x mvnw
- ./mvnw verify jacoco:report
- cat ronja-service/target/site/jacoco/index.html
coverage: "/Total.*?([0-9]{1,3})%/"
tags:
- docker
test-integration:
image: eclipse-temurin:21.0.5_11-jdk-jammy
stage: test
script:
- chmod +x mvnw
- ./mvnw test-compile failsafe:integration-test failsafe:verify jacoco:report
- cat ronja-service/target/site/jacoco/index.html
coverage: "/Total.*?([0-9]{1,3})%/"
needs:
- job: test-code
tags:
- gitlab-org-docker