mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 13:44:32 +02:00
add gitlab ssh key for geo nodes
This commit is contained in:
@@ -17,6 +17,13 @@ function add_ssh_keys() {
|
|||||||
function add_gitlab_ssh_keys() {
|
function add_gitlab_ssh_keys() {
|
||||||
add_ssh_keys "${GITLAB_KEY}"
|
add_ssh_keys "${GITLAB_KEY}"
|
||||||
echo -e "Host gitlab.espressif.cn\n\tStrictHostKeyChecking no\n" >>~/.ssh/config
|
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() {
|
function add_github_ssh_keys() {
|
||||||
|
Reference in New Issue
Block a user