From 4cfcedc409a056a47161016b09b311440cf10075 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20B=C3=A9jean?= <nicolas@bejean.fr>
Date: Sun, 12 Dec 2021 16:39:12 +0100
Subject: [PATCH] debug add cache

---
 .gitlab-ci.yml | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5bb333c..01b79d0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,6 +30,13 @@ check-elastic:
     gitlab-terraform validate
     gitlab-terraform fmt -check
     gitlab-terraform plan
+    gitlab-terraform plan-json
+  artifacts:
+    name: plan
+    paths:
+      - ${TF_ROOT_ELASTIC}/plan.cache
+    reports:
+      terraform: ${TF_ROOT_ELASTIC}/plan.json
 
 check-magento:
   stage: deploy
@@ -50,10 +57,16 @@ check-magento:
     gitlab-terraform validate
     gitlab-terraform fmt -check
     gitlab-terraform plan
+  artifacts:
+    name: plan
+    paths:
+      - ${TF_ROOT_MAGENTO}/plan.cache
+    reports:
+      terraform: ${TF_ROOT_MAGENTO}/plan.json
 
 apply-elastic:
   stage: deploy
-  needs:
+  dependencies:
     - check-elastic
   tags:
     - docker
@@ -70,7 +83,7 @@ apply-elastic:
 
 apply-magento:
   stage: deploy
-  needs:
+  dependencies:
     - check-magento
   tags:
     - docker
-- 
GitLab