From 71479c1ef643e69eab0856dd453f3ecacd936cf1 Mon Sep 17 00:00:00 2001
From: Michelle Weidling <weidling@sub.uni-goettingen.de>
Date: Thu, 10 Jun 2021 09:01:43 +0200
Subject: [PATCH] ci: move CI scripts to separate dir

---
 .../delete-inactive-environments.sh                 |  0
 .../remove-old-artifacts.sh                         |  0
 set-path-base.sh => .ci-scripts/set-path-base.sh    |  0
 .../update-artifacts.sh                             |  0
 .gitlab-ci.yml                                      | 13 +++++++------
 5 files changed, 7 insertions(+), 6 deletions(-)
 rename delete-inactive-environments.sh => .ci-scripts/delete-inactive-environments.sh (100%)
 rename remove-old-artifacts.sh => .ci-scripts/remove-old-artifacts.sh (100%)
 rename set-path-base.sh => .ci-scripts/set-path-base.sh (100%)
 rename update-artifacts.sh => .ci-scripts/update-artifacts.sh (100%)

diff --git a/delete-inactive-environments.sh b/.ci-scripts/delete-inactive-environments.sh
similarity index 100%
rename from delete-inactive-environments.sh
rename to .ci-scripts/delete-inactive-environments.sh
diff --git a/remove-old-artifacts.sh b/.ci-scripts/remove-old-artifacts.sh
similarity index 100%
rename from remove-old-artifacts.sh
rename to .ci-scripts/remove-old-artifacts.sh
diff --git a/set-path-base.sh b/.ci-scripts/set-path-base.sh
similarity index 100%
rename from set-path-base.sh
rename to .ci-scripts/set-path-base.sh
diff --git a/update-artifacts.sh b/.ci-scripts/update-artifacts.sh
similarity index 100%
rename from update-artifacts.sh
rename to .ci-scripts/update-artifacts.sh
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 43f5a6f..0451a19 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,8 +3,9 @@
 # keep this file slim and clear. please have a look at these scripts for
 # information that goes beyond the documentation of the single stages.
 #
-# this config uses custom Docker images to keep the pipelines fast.
-# see https://gitlab.gwdg.de/mrodzis/docker-images for more info about them.
+# this config uses a custom Docker image to keep the pipelines fast.
+# see https://gitlab.gwdg.de/mrodzis/docker-images/-/tree/main/alpine for more 
+# info about it.
 
 cache:
   paths:
@@ -20,7 +21,7 @@ build_page:
   image: node:lts-alpine3.10
   stage: build
   script:
-    - ash set-path-base.sh ${CI_COMMIT_REF_SLUG}
+    - ash .ci-scripts/set-path-base.sh ${CI_COMMIT_REF_SLUG}
     - npm i
     - node_modules/.bin/vuepress build src
   artifacts:
@@ -35,8 +36,8 @@ pages:
     - job: build_page
       artifacts: true
   script:
-    - ash update-artifacts.sh
-    - ash remove-old-artifacts.sh
+    - ash .ci-scripts/update-artifacts.sh
+    - ash .ci-scripts/remove-old-artifacts.sh
   environment:
     name: ${CI_COMMIT_REF_SLUG}
     url: https://subugoe.pages.gwdg.de/ahiqar/website/${CI_COMMIT_REF_SLUG}/
@@ -74,4 +75,4 @@ remove_envs:
     - if: '$CI_COMMIT_BRANCH == "main"'
     - if: '$CI_COMMIT_MESSAGE =~ "Merge"'
   script:
-    - ash delete-inactive-environments.sh
+    - ash .ci-scripts/delete-inactive-environments.sh
-- 
GitLab