diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 706c5677fb8a29582b1ca2fb627b17a5583b8044..c86d9f259765b6de5858114840f23ad86eb9011a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,9 +4,6 @@ stages:
   - automated_test
 
 default:
-  image: python:3.11
-  tags:
-    - docker
   before_script:
     - eval $(ssh-agent -s)
     - echo "$SSH_PRIVATE_KEY_GITLAB" | tr -d '\r' | ssh-add -
@@ -19,6 +16,7 @@ default:
     - ssh-keyscan -p 10022 git.xfel.eu > $CI_PROJECT_DIR/.ssh/known_hosts
     - ls  $CI_PROJECT_DIR/.ssh
     - echo $GIT_SSH_COMMAND
+    - export PYENV_VERSION="3.11"
     - python3 -m venv .venv
     - source .venv/bin/activate
     - python3 -m pip install --upgrade pip setuptools wheel