diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1b809a03881c446f9cbc0eb9d4024af5fac851cf..4370c1f69fd37cae103da9ed1d9ba3295c908bce 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,8 +21,8 @@ build-openapi-scheme:
     # we do this, because YAML anchors are not supported when executing locally
     - apt-get update
     - apt-get install -y gcc libldap2-dev libsasl2-dev libmagic-dev
-    - pip install --upgrade pip
-    - pip install poetry==1.8.1
+    - python3 -m pip install --upgrade pip
+    - python3 -m pip install poetry==1.8.1
     - poetry install --without dev,test --no-root
   script:
     - mkdir public