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