generated from YouClap/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
52 lines (39 loc) · 906 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
46
47
48
49
50
51
52
include:
- remote: 'https://raw.githubusercontent.com/YouClap/Playbook/master/Backend/templates/gitlab-ci/master-gitlab-ci.yml'
variables:
NAME: springbootexample
######################
# Merge request jobs #
######################
BuildMR:
image: openjdk:8-jdk-alpine
extends: .build_mr_template
script:
- sh gradlew build
- sh gradlew bootJar
LintMR:
image: openjdk:8-jdk-alpine
extends: .lint_mr_template
script:
- sh gradlew detekt
##############
# Build jobs #
##############
BuildDev:
extends: .build_dev_template
image: openjdk:8-jdk-alpine
script:
- sh gradlew build
artifacts:
paths:
- build/libs/springbootexample.jar
expire_in: 1 hour
BuildProd:
extends: .build_prod_template
image: openjdk:8-jdk-alpine
script:
- sh gradlew build
artifacts:
paths:
- build/libs/springbootexample.jar
expire_in: 1 hour