forked from Goldencat98/Bank-App
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
59 lines (54 loc) · 1.12 KB
/
.gitlab-ci.yml
File metadata and controls
59 lines (54 loc) · 1.12 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
include:
- template: Security/SAST.gitlab-ci.yml
- template: Security/Secret-Detection.gitlab-ci.yml
- template: Code-Quality.gitlab-ci.yml
- template: Security/Dependency-Scanning.gitlab-ci.yml
stages:
- code
- test
- quality
- dependency-scanning
- sast
- build
- deploy
code_checkout:
image: maven
stage: code
tags:
- bankapp
script:
- chmod +x ./mvnw # Move chmod here to ensure future stages can use it
- ./mvnw --version
artifacts:
paths:
- ./mvnw # Ensure mvnw with exec permission is preserved
- .mvn/
- pom.xml
expire_in: 1h
testing_and_sast:
tags:
- bankapp
image: maven
stage: test
script:
- ./mvnw install -DskipTests
variables:
SECRET_DETECTION_ENABLED: 'true'
build:
image: openjdk
tags:
- bankapp
stage: build
script:
- ./mvnw install -DskipTests
artifacts:
paths:
- target/*.jar
expire_in: 30 days
deploy:
image: openjdk
tags:
- bankapp
stage: deploy
script:
- java -jar target/*.jar