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

gitlab-ci.yml

parent 2a9f19dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ sync:
    - master
  script:
    - git config --global credential.helper store && touch ~/.git-credentials
    - echo "https://gitlab-ci-token:${CI_ACCESS_TOKEN}@${CI_SERVER_HOST}" >> ~/.git-credentials || true
    - echo "https://${PROJECT_ACCESS_TOKEN_USERNAME}:${PROJECT_ACCESS_TOKEN}@${CI_SERVER_HOST}" >> ~/.git-credentials || true
    - ( test -n "${GIT_LOGIN}" && test -n "${GIT_PASSWORD}" ) && echo "https://${GIT_LOGIN}:${GIT_PASSWORD}@$(echo ${GIT_URL} | sed -r 's#([^/])/[^/].*#\1#' | sed -e 's|https://||g')" >> ~/.git-credentials || true
    - ( eval $(ssh-agent -s); echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null && mkdir -p ~/.ssh && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config ) || true
    - git checkout master