-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy path.gitlab-ci.yml
76 lines (70 loc) · 1.57 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
# https://hub.docker.com/_/ruby/tags
# https://hub.docker.com/r/oven/bun/tags
stages:
- test
- deploy
test:inventory:
image: node:23
stage: test
script:
- yarn global add gulp-cli
- yarn install
- yarn run build
only:
- merge_requests
except:
- master
test:doc:
image: ruby:3.3
stage: test
script:
- cd documentation
- bundle install
- bundle exec jekyll build
only:
- merge_requests
except:
- master
test:data:
image: oven/bun:1.1.31
stage: test
script:
- bun install
- bun test
only:
- merge_requests
except:
- master
pages: # for Gitlab Pages this job must exactly be named `pages`
image: node:23
stage: deploy
needs: ["pages:docs"]
script:
- yarn config set unsafe-perm true
- yarn global --ignore-optional add gulp-cli netlify-cli
- yarn install # inventory dependencies
- yarn run build # build the inventory
- cp -rT build/ public/ # copying the inventory
- netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --prod --dir public/
artifacts:
paths:
- public
only:
- master
pages:docs:
image: ruby:3.3
stage: deploy
script:
- mkdir -p public/docs
- cd documentation
- bundle install # documentation dependencies
- bundle exec jekyll build # build the documentation
- cp -rT _site/ ../public/docs # copying the documentation
- cd ..
artifacts:
paths:
- public
only:
- master