chore(gitlab-ci): better caching

This commit is contained in:
Gregor Kleen 2020-10-14 16:30:39 +02:00
parent b631ed7d06
commit f1ba4659ac

View File

@ -1,7 +1,7 @@
default: default:
image: image:
name: fpco/stack-build:lts-16.11 name: fpco/stack-build:lts-16.11
cache: cache: &global_cache
paths: paths:
- node_modules - node_modules
- .stack - .stack
@ -57,6 +57,9 @@ npm install:
interruptible: true interruptible: true
frontend:build: frontend:build:
cache:
<<: *global_cache
policy: pull
stage: frontend:build stage: frontend:build
script: script:
- npm run frontend:build - npm run frontend:build
@ -146,6 +149,9 @@ yesod:build:
resource_group: ram resource_group: ram
frontend:test: frontend:test:
cache:
<<: *global_cache
policy: pull
stage: test stage: test
script: script:
- npm run frontend:test - npm run frontend:test
@ -167,6 +173,7 @@ frontend:test:
interruptible: true interruptible: true
deploy:uniworx3: deploy:uniworx3:
cache: {}
stage: deploy stage: deploy
script: script:
- zip -qj - bin/uniworx bin/uniworxdb | ssh root@uniworx3.ifi.lmu.de /root/bin/accept_uni2work - zip -qj - bin/uniworx bin/uniworxdb | ssh root@uniworx3.ifi.lmu.de /root/bin/accept_uni2work