add gitlab ssh key for geo nodes

pull/4512/merge
Fu Hanxi 2020-09-27 17:39:37 +08:00
rodzic 7951152f7b
commit d3e44d9483
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -17,6 +17,13 @@ function add_ssh_keys() {
function add_gitlab_ssh_keys() {
add_ssh_keys "${GITLAB_KEY}"
echo -e "Host gitlab.espressif.cn\n\tStrictHostKeyChecking no\n" >>~/.ssh/config
# For gitlab geo nodes
if [ "${LOCAL_GITLAB_SSH_SERVER:-}" ]; then
SRV=${LOCAL_GITLAB_SSH_SERVER##*@} # remove the chars before @, which is the account
SRV=${SRV%%:*} # remove the chars after :, which is the port
printf "Host %s\n\tStrictHostKeyChecking no\n" "${SRV}" >>~/.ssh/config
fi
}
function add_github_ssh_keys() {