-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
44 lines (37 loc) · 823 Bytes
/
.gitlab-ci.yml
File metadata and controls
44 lines (37 loc) · 823 Bytes
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
---
image:
name: igloo-containers.tools.kobalt.fr/containers/maven-igloo:3.9-eclipse-temurin-17
variables:
MAVEN_OPTS: "-Xmx256m"
stages:
- build
- deploy
- trigger
maven-build:
stage: build
environment: staging
script:
# non recursive: all poms are checked at once
- "mvn -N spotless:check@format-poms"
- "mvn package"
tags:
- docker
maven-deploy:
stage: deploy
environment: staging
script:
- "mvn deploy -DperformRelease"
rules:
- if: $CI_COMMIT_BRANCH == "main"
- if: $CI_COMMIT_BRANCH == "dev"
- if: $CI_COMMIT_BRANCH =~ /^ft-.*-deploy$/
- if: $CI_COMMIT_BRANCH =~ /^hf-.*$/
tags:
- docker
trigger:
stage: trigger
trigger:
project: igloo-project/igloo-commons
branch: $CI_COMMIT_BRANCH
rules:
- if: $CI_COMMIT_BRANCH == "dev"