Commit e3783063 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

test

parent 2a580899
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -43,6 +43,11 @@ sync:
    - eval $(ssh-agent -s) && mkdir -p ~/.ssh && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
    - test -n "${GIT_PULL_PRIVATE_KEY}" && echo "${GIT_PULL_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null || true
    - test -n "${GIT_PUSH_PRIVATE_KEY}" && echo "${GIT_PUSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null || true
    - rm -rf /tmp/repo
  script:
    - echo "[${GIT_PULL_REPO}] -> [${GIT_PUSH_REPO}]"
    - git lfs clone --mirror "${GIT_PULL_REPO}" "${GIT_PUSH_REPO}"
    - git clone --bare "${GIT_PULL_REPO}" /tmp/repo
    - cd /tmp/repo
    - git lfs fetch --all
    - git push --mirror "${GIT_PUSH_REPO}"
    - git lfs push --all "${GIT_PUSH_REPO}"