From 441cddaeb6ea8f0cc07ff8b713cf2ddaa25836d1 Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Thu, 17 Feb 2022 07:27:07 +0100
Subject: [PATCH] copy index during branch pipeline

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 89e70d8f..443b18d2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -68,6 +68,18 @@ save:commitIndex:
     - git push origin $CI_COMMIT_REF_NAME || true
     - git branch -D tmpBranch || true
 
+save:copyIndex:
+  image:
+    name: alpine/git:latest
+    entrypoint: [""]
+  stage: save
+  rules:
+    - if: $CI_COMMIT_REF_NAME
+  script:
+    # copy the index and remove the temporary directory
+    - cp .tmp/cards.md .
+
+
 # build
 # ------------------------------------------------------------------------------------
 
-- 
GitLab