chore(gitlab-ci): migrate node dependencies to make
This commit is contained in:
parent
3dd9ef1772
commit
1cbc65b25a
@ -34,9 +34,14 @@ stages:
|
||||
|
||||
node dependencies:
|
||||
stage: frontend:build
|
||||
cache:
|
||||
- &npm-cache
|
||||
key: default-npm
|
||||
paths:
|
||||
- .npm
|
||||
- node_modules
|
||||
script:
|
||||
- nix -L build -o result ".#uniworxNodeDependencies"
|
||||
- nix-store --export $(nix-store -qR result) | xz -T0 -2 > node-dependencies.nar.xz
|
||||
- make node_modules
|
||||
before_script: &nix-before
|
||||
- git config --global init.defaultBranch master
|
||||
- install -v -m 0700 -d ~/.ssh
|
||||
@ -46,7 +51,7 @@ node dependencies:
|
||||
- install -v -T -m 0644 "${NIX_NETRC}" /etc/nix/netrc
|
||||
artifacts:
|
||||
paths:
|
||||
- node-dependencies.nar.xz
|
||||
- node_modules/
|
||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
||||
expire_in: "1 day"
|
||||
retry: 2
|
||||
|
||||
Reference in New Issue
Block a user