diff --git a/tests/platform-ci/ci-build.sh b/tests/platform-ci/ci-build.sh
index 571ef53c85aae9b9426525d8b67fa8fd2676ce39..59b399ee19843dd929f897a41f57afd44ac9edc6 100755
--- a/tests/platform-ci/ci-build.sh
+++ b/tests/platform-ci/ci-build.sh
@@ -92,6 +92,9 @@ ssh_setup() {
   # see https://gitlab.com/gitlab-org/gitlab-ee/issues/2940 for fixing
   # broken line endings
   ssh-add <(echo "$SSH_PRIVATE_KEY" | sed 's/\r$//')
+
+  [ -d ~/.ssh ] || /bin/mkdir ~/.ssh
+  /bin/cp "${ROOTDIR}/provider/users/gitlab-runner-${provider_name}/gitlab-runner-${provider_name}_ssh.pub" ~/.ssh/id_rsa.pub
 }
 
 build_from_scratch() {