.gitlab-ci.yml 476 Bytes
Newer Older
Maxime Lefrançois's avatar
Maxime Lefrançois committed
image: maximelefrancois86/alpine-ssh-rsync

variables:
    SAREF_PORTAL_KEY: <my_private_key>

before_script:
  - eval $(ssh-agent -s)
  - ssh-add <(echo "$SAREF_PORTAL_KEY")
  - mkdir -p ~/.ssh
  - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'

build:
  script:
   - echo "nameserver 8.8.8.8" > /etc/resolv.conf
   - rsync -rtcv -e 'ssh -p 29419' error-documents saref-portal@saref.etsi.org:~/error-documents
  only:
   - master