From 3e93e9833d0c3d02c5f9f438f0cb7b206b7009a2 Mon Sep 17 00:00:00 2001
From: Martin Weise <martin.weise@tuwien.ac.at>
Date: Wed, 10 Apr 2024 12:36:18 +0200
Subject: [PATCH] Fixed pipeline for releasing lib

---
 .gitlab-ci.yml        | 9 ++++-----
 lib/python/release.sh | 2 +-
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 647d508a1d..ffeed15486 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -587,9 +587,8 @@ release-libs:
   variables:
     PIPENV_PIPFILE: "./dbrepo-analyse-service/Pipfile"
   script:
-    - apk add sed
-    - pip install pipenv
+    - apk add sed bash
+    - pip install pipenv twine build
     - pipenv install gunicorn && pipenv install --dev --system --deploy
-    - pip install twine build
-    - ./lib/python/package.sh
-    - ./lib/python/release.sh
\ No newline at end of file
+    - bash ./lib/python/package.sh
+    - bash ./lib/python/release.sh
\ No newline at end of file
diff --git a/lib/python/release.sh b/lib/python/release.sh
index 5e2b326831..9c5e62d2d0 100755
--- a/lib/python/release.sh
+++ b/lib/python/release.sh
@@ -1,3 +1,3 @@
 #!/bin/bash
-cat ${CI_PIPYRC} | base64 -d > .pypirc
+echo "${CI_PIPYRC}" | base64 -d > .pypirc
 python -m twine upload --config-file .pypirc --verbose --repository pypi ./lib/python/dist/dbrepo-*
-- 
GitLab