diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e486a2cbc5d43846e4e96ce99ece4effd923b2d8..33671dd3f90286726900d07ed5b8fcdcba3830d4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -187,7 +187,7 @@ Build Image:
     - *install-aws
     - *ssh-key
   script:
-    - docker build -t local/${IMAGE_NAME} .
+    - docker build --build-arg ssh_private_key="${SSH_PRIVATE_KEY}" -t local/${IMAGE_NAME} .
 
 ####
 # Build and publish Docker images with data from AWS S3.