-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
38 lines (36 loc) · 1.01 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
.build:
image: node:20.16.0
script:
- npm ci
- ./clone_projects.sh
- ./build.sh
build:
extends:
- .build
stage: build
variables:
C0_GLOBAL_BASE: /-/development/telescopium/-/jobs/$CI_JOB_ID/artifacts/dist
after_script:
- node scripts/local_link_suffixer.js
- |
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${C0_GLOBAL_BASE}/index.html"
echo -e "\e[0Ksection_end:`date +%s`:glpa_summary\r\e[0K"
artifacts:
paths:
- dist
expire_in: 7 days
rules:
- if: ($CI_COMMIT_BRANCH != "build-branch" || $C0_TRIGGER_REF != "refs/heads/main") && $C0_TRIGGER_REF != "refs/heads/main"
pages:
extends:
- .build
stage: deploy
after_script:
- rm -rf public
- mv dist public
artifacts:
paths:
- public
rules:
- if: ($CI_COMMIT_BRANCH == "build-branch" && $C0_TRIGGER_REF == "refs/heads/main") || $C0_TRIGGER_REF == "refs/heads/main"