- Generate ssh key (if not exists)
- No passowrd or anything
ssh-keygen
- Create variable with SSH_PRIVATE_KEY and add the
~/.ssh/id_rsa
private key into it - Add the key into authorized keys
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- Create init section in .gitlab-ci.yml
before_script: