There are ample questions here which instruct you to add
- echo "$SSH_PRIVATE_KEY" | tr -d \'\\r\' | ssh-add -
to .gitlab-ci.
.gitlab-ci.