up
This commit is contained in:
@@ -11,7 +11,6 @@
|
|||||||
- echo -n "$TECH_SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
- echo -n "$TECH_SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
- chmod 600 ~/.ssh/id_rsa
|
- chmod 600 ~/.ssh/id_rsa
|
||||||
- cat ~/.ssh/id_rsa
|
|
||||||
# https://mikefarah.gitbook.io/yq/operators/traverse-read#nested-special-characters
|
# https://mikefarah.gitbook.io/yq/operators/traverse-read#nested-special-characters
|
||||||
- STANDS=$(echo "$STANDS" | yq '."'"${CI_COMMIT_REF_NAME}"'".[]')
|
- STANDS=$(echo "$STANDS" | yq '."'"${CI_COMMIT_REF_NAME}"'".[]')
|
||||||
- RED=$'\033[0;31m'
|
- RED=$'\033[0;31m'
|
||||||
@@ -26,7 +25,8 @@
|
|||||||
echo "stand: ${stand}"
|
echo "stand: ${stand}"
|
||||||
ssh-keyscan "${stand}" >> ~/.ssh/known_hosts
|
ssh-keyscan "${stand}" >> ~/.ssh/known_hosts
|
||||||
done
|
done
|
||||||
- chmod 644 ~/.ssh/known_hosts
|
# - chmod 644 ~/.ssh/known_hosts
|
||||||
|
- chmod -R 400 ~/.ssh
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
for stand in $STANDS; do
|
for stand in $STANDS; do
|
||||||
|
|||||||
Reference in New Issue
Block a user