-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
57 lines (54 loc) · 934 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
53
54
55
56
57
stages:
- build
- release
build-nodejs-job:
stage: build
image: node:21-alpine
tags:
- shared
script:
- cd nodejs
- echo "Compiling the code..."
- npm i
- npm run build
- echo "Compile completed."
rules:
- changes:
- nodejs/**/*
artifacts:
paths:
- "nodejs/dist/piwas.js"
build-java-job:
stage: build
image: openjdk:17-alpine
tags:
- shared
script:
- cd java
- apk add make
- echo "Compiling the code..."
- make
- echo "Compile completed."
rules:
- changes:
- java/**/*
artifacts:
paths:
- "java/dist/piwas.jar"
build-client-job:
stage: build
image: golang:1.22-alpine
tags:
- shared
script:
- cd client
- go mod tidy
- echo "Compiling the code..."
- go build
- echo "Compile completed."
rules:
- changes:
- client/**/*
artifacts:
paths:
- "client/piwas-client"