chore(gitlab-ci): better caching
This commit is contained in:
parent
b631ed7d06
commit
f1ba4659ac
@ -1,7 +1,7 @@
|
||||
default:
|
||||
image:
|
||||
name: fpco/stack-build:lts-16.11
|
||||
cache:
|
||||
cache: &global_cache
|
||||
paths:
|
||||
- node_modules
|
||||
- .stack
|
||||
@ -57,6 +57,9 @@ npm install:
|
||||
interruptible: true
|
||||
|
||||
frontend:build:
|
||||
cache:
|
||||
<<: *global_cache
|
||||
policy: pull
|
||||
stage: frontend:build
|
||||
script:
|
||||
- npm run frontend:build
|
||||
@ -146,6 +149,9 @@ yesod:build:
|
||||
resource_group: ram
|
||||
|
||||
frontend:test:
|
||||
cache:
|
||||
<<: *global_cache
|
||||
policy: pull
|
||||
stage: test
|
||||
script:
|
||||
- npm run frontend:test
|
||||
@ -167,6 +173,7 @@ frontend:test:
|
||||
interruptible: true
|
||||
|
||||
deploy:uniworx3:
|
||||
cache: {}
|
||||
stage: deploy
|
||||
script:
|
||||
- zip -qj - bin/uniworx bin/uniworxdb | ssh root@uniworx3.ifi.lmu.de /root/bin/accept_uni2work
|
||||
|
||||
Loading…
Reference in New Issue
Block a user