diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 87d8b3cac0d007a293b0e2e4d7574a583afc8974..f18561908b8c9b8f4e151f132e8044254f2d5a01 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -39,7 +39,11 @@ release:
   stage: release
   image: docker.io/python:3.8-slim-bullseye
   before_script:
-    - apt-get update && apt-get install git
+    - apt-get update
+      && apt-get install
+      --yes
+      --no-install-recommends
+      git
     - pip install --requirement requirements.ci.txt
   script:
     - semantic-release --verbosity=DEBUG publish