Commit b8df6aab by yiling.shen

Fix SSH known_hosts configuration in GitLab CI

parent 7e8fab52
Pipeline #3187 failed with stages
in 11 seconds
......@@ -15,7 +15,7 @@ deploy_to_production:
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/known_hosts
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- echo "Starting production deployment"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment