Skip to content
Snippets Groups Projects
Commit ffe55418 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

test

parent e3783063
No related branches found
No related tags found
No related merge requests found
...@@ -43,11 +43,10 @@ sync: ...@@ -43,11 +43,10 @@ sync:
- eval $(ssh-agent -s) && mkdir -p ~/.ssh && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - 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_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 - test -n "${GIT_PUSH_PRIVATE_KEY}" && echo "${GIT_PUSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null || true
- rm -rf /tmp/repo
script: script:
- echo "[${GIT_PULL_REPO}] -> [${GIT_PUSH_REPO}]" - echo "[${GIT_PULL_REPO}] -> [${GIT_PUSH_REPO}]"
- git clone --bare "${GIT_PULL_REPO}" /tmp/repo - cd "$(mktemp -d)"
- cd /tmp/repo - git clone --bare "${GIT_PULL_REPO}" .
- git lfs fetch --all - git lfs fetch --all
- git push --mirror "${GIT_PUSH_REPO}" - git push --mirror "${GIT_PUSH_REPO}"
- git lfs push --all "${GIT_PUSH_REPO}" - git lfs push --all "${GIT_PUSH_REPO}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment