From 02c45bdc225491c434f9f66980f13dd5559fb48a Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Sat, 23 Jan 2021 11:13:00 +0100
Subject: [PATCH] gitlab-ci-cd/drupal#2 Use separate cache for production build

---
 test-and-deploy.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test-and-deploy.yml b/test-and-deploy.yml
index c4c4843..e9a7607 100644
--- a/test-and-deploy.yml
+++ b/test-and-deploy.yml
@@ -58,6 +58,10 @@ stages:
   key: build-${COMPOSE_PROJECT_NAME}
   <<: *cache_paths
 
+.cache_prod: &cache_prod
+  key: build-prod-${COMPOSE_PROJECT_NAME}
+  <<: *cache_paths
+
 .prerequisites:
   stage: validation
   tags:
@@ -102,7 +106,7 @@ stages:
   tags:
     - default
   cache:
-    <<: *cache_default
+    <<: *cache_prod
     policy: pull-push
   script: |
     if [[ -n $SSH_PRIVATE_KEY ]]; then
-- 
GitLab