-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
67 lines (54 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
image: docker.io/maven:3.6.1-amazoncorretto-8
stages:
- build
- unit_test
- build_app_image
- deploy_to_env
- e2e_test
- publish
- development
- staging
- prod
variables:
MAVEN_CLI_OPTS: "--batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
cache:
paths:
- .m2/repository/
- target/
build_code:
stage: build
script:
- mvn compile
unit_test:
stage: unit_test
script:
- mvn compile
build_app_image:
stage: build_app_image
script:
- echo "Build Docker image for this app version"
deploy_to_shared_env:
stage: deploy_to_env
script:
- echo "Deploy this version of image in an environment"
Run_e2e_test:
stage: e2e_test
script:
- echo "Automated test to validate the app"
publish:
stage: publish
script:
- echo "Publish this image to image registry for rollout"
deploy_to_dev:
stage: development
script:
- echo "Deploy to a newly provisioned stack"
deploy_to_stage:
stage: staging
script:
- echo "Deploy to stage"
deploy_to_prod:
stage: prod
script:
- echo "Deploy to prod"