-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
45 lines (42 loc) · 752 Bytes
/
.gitlab-ci.yml
File metadata and controls
45 lines (42 loc) · 752 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
44
45
stages:
- lint
- build
- deploy
lint:
image: node:20
stage: lint
script:
- npm install --progress=false
- npm run lint
build site:
image: node:20
stage: build
cache:
key:
files:
- package-lock.json
prefix: npm
paths:
- node_modules/
script:
- npm install --progress=false
- npm run build
artifacts:
expire_in: 1 week
paths:
- dist
environment:
name: review/$CI_COMMIT_REF_NAME
url: https://$CI_PROJECT_NAMESPACE.pages.gwdg.de/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/dist/index.html
pages:
image: alpine
stage: deploy
only:
- main
variables:
GIT_STRATEGY: none
script:
- mv dist public
artifacts:
paths:
- public