From 3a7420cb4dcba12790498ed513c7a9e1b09bfdd4 Mon Sep 17 00:00:00 2001
From: Julian <julian@cccv.de>
Date: Mon, 3 Jan 2022 02:21:22 +0000
Subject: [PATCH] Add .gitlab-ci.yml to generate directory index for archiving

---
 .gitlab-ci.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..34c7169
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,20 @@
+image: registry.git.cccv.de/infra/static-pages/docker-images/bullseye-directory-listing
+
+variables:
+  GIT_SUBMODULE_STRATEGY: recursive
+
+pages:
+  stage: deploy
+  script:
+    - mkdir .public
+    - cp -r * .public
+    - mv .public public
+    - find public/ -name '.*' -exec rm -r {} \;
+    - apt-get update -qq; apt-get install --reinstall -y libexpat1 #this is a workaround for some strange bug where libexpat is missing
+    - create-directory-html-index --template rc3 ./public ./public
+    - du -hs ./public
+  artifacts:
+    paths:
+      - public
+  only:
+    - master
-- 
GitLab