diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 08b06743451c8f037a660d9f265506c45bba9895..8eda77e96f3f98d4078e9c52ebfd22e58f37ba72 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -594,5 +594,5 @@ release-libs:
     - 'sed -i -e "s/__APPVERSION__/${APP_VERSION}/g" ./lib/python/pyproject.toml ./lib/python/setup.py ./lib/python/README.md'
     - python -m build --sdist ./lib/python
     - python -m build --wheel ./lib/python
-    - printf "[diskutils]\nindex-servers =\n    pypi\n\n[pypi]\nusername = __token__\npassword = ${CI_PIPY_TOKEN}\nrepository = https://upload.pypi.org/legacy/" > .pypirc
+    - cat ${CI_PIPYRC} | base64 -d > .pypirc
     - python -m twine upload --config-file .pypirc --verbose --repository pypi ./lib/python/dist/dbrepo-*
\ No newline at end of file