-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
59 lines (52 loc) · 1.25 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
variables:
MAVEN_OPTS: >-
-Dhttps.protocols=TLSv1.2
-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository
-Dorg.slf4j.simpleLogger.showDateTime=true
-Djava.awt.headless=true
MAVEN_CLI_OPTS: >-
--batch-mode
--errors
--fail-at-end
--show-version
--no-transfer-progress
-DinstallAtEnd=true
-DdeployAtEnd=true
SONAR_CLI_OPTS: >-
-Dsonar.projectKey=gitlab-classrooms_gitlab-classrooms
-Dsonar.organization=gitlab-classrooms
-Dsonar.host.url=https://sonarcloud.io
image: maven:3-eclipse-temurin-21
cache:
paths:
- .m2/repository
verify:
stage: test
script:
- 'mvn $MAVEN_CLI_OPTS verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar $SONAR_CLI_OPTS'
deploy:
image:
name: clevercloud/clever-tools
entrypoint: ["/bin/sh", "-c"]
stage: deploy
rules:
- if: $CI_COMMIT_REF_NAME == 'main'
script:
- clever deploy
environment:
name: production
deployment_tier: production
url: https://gitlab-classrooms.cleverapps.io/
action: start
pages:
image:
name: squidfunk/mkdocs-material
entrypoint: ["/bin/sh", "-c"]
stage: deploy
rules:
- if: $CI_COMMIT_REF_NAME == 'main'
script:
- mkdocs build -d public
artifacts:
paths:
- public