-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
46 lines (44 loc) · 1.13 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
stages:
- build
build-back:
image: registry.gitlab.inria.fr/diverse/docker/docker-image/insa-maven:3.8-openjdk-17
stage: build
script:
- cd game/game-backend
- mvn clean package spring-boot:repackage
rules:
- changes:
- "*.md"
when: never
- changes:
- "game/game-backend/**/*"
- ".gitlab-ci.yml"
when: always
artifacts:
paths:
- game/game-backend/target/site/jacoco/jacoco.xml
- game/game-backend/target/game-backend-0.0.1.jar
expire_in: 1 hour
build-front:
image: registry.gitlab.inria.fr/diverse/docker/docker-image/insa-node:16.13.2
stage: build
cache:
paths:
- game/game-frontend/node_modules/
script:
- cd game/game-frontend
- npm install
#- npm run ng lint && npm run ng build -- --configuration production --build-optimizer
- npm run ng build -- --configuration production --build-optimizer
rules:
- changes:
- "*.md"
when: never
- changes:
- "game/game-frontend/**/*"
- ".gitlab-ci.yml"
when: always
artifacts:
paths:
- game/game-frontend/dist/game-frontend/
expire_in: 1 hour