-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
59 lines (54 loc) · 1.42 KB
/
.gitlab-ci.yml
File metadata and controls
59 lines (54 loc) · 1.42 KB
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
stages:
- build
- lint
- deploy
.build:
image: node:22.22.2
script:
- npm ci
- ./clone_projects.sh
- npm run build
build:
extends:
- .build
stage: build
variables:
NEXT_PUBLIC_ARTIFACT_VIEWER: "true"
BASE_PATH: /-/development/telescopium/-/jobs/$CI_JOB_ID/artifacts/out
after_script:
- |
echo -e "\e[0Ksection_start:`date +%s`:glpa_summary\r\e[0KHeader of the summary"
echo "Documentation preview available at https://code0-tech.gitlab.io${BASE_PATH}/index.html"
echo -e "\e[0Ksection_end:`date +%s`:glpa_summary\r\e[0K"
artifacts:
expire_in: 7 days
paths:
- out
rules:
- if: ($CI_COMMIT_BRANCH != "build-branch" || $C0_TRIGGER_REF != "refs/heads/main") && $C0_TRIGGER_REF != "refs/heads/main"
lint-links:
stage: lint
image: ghcr.io/code0-tech/build-images/telescopium-lint:315.1
needs: []
script:
- ./clone_projects.sh
- lychee --offline --no-progress --include-fragments --no-ignore content
lint-markdown:
stage: lint
image: ghcr.io/code0-tech/build-images/telescopium-lint:315.1
needs: []
script:
- ./clone_projects.sh
- rumdl check --fail-on any
pages:
extends:
- .build
stage: deploy
after_script:
- rm -rf public
- mv out public
artifacts:
paths:
- public
rules:
- if: ($CI_COMMIT_BRANCH == "build-branch" && $C0_TRIGGER_REF == "refs/heads/main") || $C0_TRIGGER_REF == "refs/heads/main"