---
.ssh:
  image: alpine
  before_script:
    - apk add openssh
    - eval $(ssh-agent -s)
    - echo "$REMOTE_SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
    - mkdir -p ~/.ssh
    - chmod 700 ~/.ssh
    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config'
