Loading gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ sync: script: - git config --global credential.helper store && touch ~/.git-credentials - echo "https://${GIT_LOGIN}:${GIT_PASSWORD}@$(echo ${GIT_URL} | sed -r 's#([^/])/[^/].*#\1#' | sed -e 's|https://||g')" >> ~/.git-credentials || true - echo "https://gitlab-ci-token:${CI_BUILD_TOKEN}@${CI_SERVER_HOST}" >> ~/.git-credentials || true - echo "https://gitlab-ci-token:${CI_ACCESS_TOKEN}@${CI_SERVER_HOST}" >> ~/.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 - git remote add upstream "${GIT_URL}" # https://github.com/southbridgeio/kubespray.git Loading Loading
gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ sync: script: - git config --global credential.helper store && touch ~/.git-credentials - echo "https://${GIT_LOGIN}:${GIT_PASSWORD}@$(echo ${GIT_URL} | sed -r 's#([^/])/[^/].*#\1#' | sed -e 's|https://||g')" >> ~/.git-credentials || true - echo "https://gitlab-ci-token:${CI_BUILD_TOKEN}@${CI_SERVER_HOST}" >> ~/.git-credentials || true - echo "https://gitlab-ci-token:${CI_ACCESS_TOKEN}@${CI_SERVER_HOST}" >> ~/.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 - git remote add upstream "${GIT_URL}" # https://github.com/southbridgeio/kubespray.git Loading