From f1e782c5e1d699f6c2ade246f7298f1d27eb7dc9 Mon Sep 17 00:00:00 2001
From: nrb <freifunk@nicoboehr.de>
Date: Sun, 12 Jan 2020 00:38:19 +0100
Subject: [PATCH] cache gefrickel

---
 .gitlab-ci.yml | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c29a23272..2d6f4df3d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,11 +21,8 @@ stages:
       - gluon/output/
     expire_in: 1 day
   cache:
-    paths:
-      - gluon/openwrt/dl
-      - gluon/openwrt/staging_dir
-      - gluon/openwrt/feeds
-    key: "target-$GLUON_TARGET"
+    key: "gluon-update"
+    policy: "pull"
  
 target:ar71xx-generic:
   extends: .target
@@ -91,6 +88,11 @@ update:
   stage: update
   script:
     - make -C gluon update GLUON_SITEDIR="$CI_PROJECT_DIR"
+  cache:
+    paths:
+      - gluon/*
+    key: "gluon-update"
+    policy: push
 
 package:
   stage: package
-- 
GitLab