This commit is contained in:
Бурденко Алексей
2025-06-24 11:50:04 +03:00
parent df50c65b6e
commit f7a36d9563
+2 -2
View File
@@ -11,7 +11,6 @@
- echo -n "$TECH_SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa
- chmod 700 ~/.ssh
- chmod 600 ~/.ssh/id_rsa
- cat ~/.ssh/id_rsa
# https://mikefarah.gitbook.io/yq/operators/traverse-read#nested-special-characters
- STANDS=$(echo "$STANDS" | yq '."'"${CI_COMMIT_REF_NAME}"'".[]')
- RED=$'\033[0;31m'
@@ -26,7 +25,8 @@
echo "stand: ${stand}"
ssh-keyscan "${stand}" >> ~/.ssh/known_hosts
done
- chmod 644 ~/.ssh/known_hosts
# - chmod 644 ~/.ssh/known_hosts
- chmod -R 400 ~/.ssh
script:
- >
for stand in $STANDS; do