diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bab299540865b182bd1c54eebd686dd16b5d89b7..6906687dae406654d48597475a9436cb23b3e7b4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,6 +27,7 @@ build-main:
     - docker push "$CI_REGISTRY_IMAGE:stage-src-branch-$CI_COMMIT_REF_SLUG"
     - docker build
       --build-arg BUILDKIT_INLINE_CACHE=1
+      --build-arg LDAP_PLUGIN_URL="${LDAP_PLUGIN_URL}"
       --pull
       --cache-from $CI_REGISTRY_IMAGE:stage-texlive-update
       --target texlive-update
@@ -36,6 +37,7 @@ build-main:
     - docker push "$CI_REGISTRY_IMAGE:stage-texlive-update-branch-$CI_COMMIT_REF_SLUG"
     - docker build
       --build-arg BUILDKIT_INLINE_CACHE=1
+      --build-arg LDAP_PLUGIN_URL="${LDAP_PLUGIN_URL}"
       --build-arg login_text="${LOGIN_TEXT}"
       --build-arg collab_text="${COLLAB_TEXT}"
       --pull