From 38a2e5f1573ab8c8bde9ad90acbf83250f383495 Mon Sep 17 00:00:00 2001 From: nd <nd@cccv.de> Date: Sat, 11 Dec 2021 16:38:44 +0000 Subject: [PATCH] Add directory listing via gitlab pages --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6e16863 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +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 ./public ./public + artifacts: + paths: + - public + only: + - master -- GitLab