From feab15668c6b2c26da47e577d08d4285e46810df Mon Sep 17 00:00:00 2001
From: Martin Weise <martin.weise@tuwien.ac.at>
Date: Fri, 17 May 2024 22:32:39 +0200
Subject: [PATCH] WIP

---
 .gitlab-ci.yml | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f2e59741ef..64d2ce6535 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,9 +4,9 @@ variables:
   TRIVY_CACHE_DIR: ".trivycache/"
   DOCKER_HOST: "unix:///var/run/dind/docker.sock"
   TESTCONTAINERS_RYUK_DISABLED: "false"
-  DOC_VERSIONS: "latest,1.4.2,1.4.1,1.4.0,1.3.0"
-  APP_VERSION: "1.4.3-rc.0"
-  CHART_VERSION: "1.4.3-rc.0"
+  DOC_VERSIONS: "latest,1.4.3,1.4.2,1.4.1,1.4.0"
+  APP_VERSION: "1.4.3"
+  CHART_VERSION: "1.4.3"
 
 image: debian:12-slim
 
@@ -545,8 +545,9 @@ docs-registry:
   only:
     refs:
       - /^release-.*/
+  before_script:
+    - "apt-get update && apt-get install -y sed"
   script:
-    - apt-get update && apt-get install -y sed
     - pip install -r ./requirements.txt
     - find .docs -type f -exec sed -i -e "s/__APP_VERSION__/${APP_VERSION}/g" {} \;
     - python3 .docs/docker/release.py
@@ -610,8 +611,9 @@ release-docs:
   only:
     refs:
       - /^release-.*/
+  before_script:
+    - "apt-get update && apt-get install -y git make sed wget ssh"
   script:
-    - apt-get update && apt-get install -y git make sed wget ssh
     - make docs
     - eval $(ssh-agent -s)
     - echo "$CI_KEY_PRIVATE" > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
@@ -629,9 +631,10 @@ release-libs:
       - /^release-.*/
   variables:
     PIPENV_PIPFILE: "./dbrepo-analyse-service/Pipfile"
+  before_script:
+    - "apk add sed bash"
+    - "pip install pipenv twine build"
+    - "pipenv install gunicorn && pipenv install --dev --system --deploy"
   script:
-    - apk add sed bash
-    - pip install pipenv twine build
-    - pipenv install gunicorn && pipenv install --dev --system --deploy
     - bash ./lib/python/package.sh
     - bash ./lib/python/release.sh
\ No newline at end of file
-- 
GitLab