From f1ba4659acf557f57bfcf349a72598f7de525693 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 14 Oct 2020 16:30:39 +0200 Subject: [PATCH] chore(gitlab-ci): better caching --- .gitlab-ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d962f3367..db4ef096a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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