Commit 87ccde81 authored by Wen Wei Li's avatar Wen Wei Li

test sed

parent 1d9f11f7
Pipeline #4729 failed with stage
......@@ -13,7 +13,9 @@ steps:
- mkdir ~/.ssh
- chmod 700 ~/.ssh
- echo $KEY > ./key
- sed -n '1p;1!{s/ //g;p;}' ./key > ~/.ssh/id_rsa
- echo "-----BEGIN RSA PRIVATE KEY-----" > ~/.ssh/id_rsa
- sed 's/ /\n/g' ./key >> ~/.ssh/id_rsa
- echo "-----END RSA PRIVATE KEY-----" >> ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- scp -r /drone/reports $USERNAME@$HOST:~/drone_reports/
settings:
......
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