This commit is contained in:
parent
2da341584b
commit
e3155254d6
32
.drone.yml
32
.drone.yml
@ -42,32 +42,30 @@ steps:
|
|||||||
- whoami
|
- whoami
|
||||||
- pwd
|
- pwd
|
||||||
- ls -al
|
- ls -al
|
||||||
- ls /
|
|
||||||
- ls /home
|
|
||||||
- ls /root
|
|
||||||
- getent passwd
|
- getent passwd
|
||||||
- git --version && git status
|
- git --version && git status
|
||||||
|
|
||||||
# add dependencies to tmp vm machine
|
# add dependencies to tmp vm machine
|
||||||
- apt-get update && apt-get -y install rsync sshpass
|
- apt-get update && apt-get -y install rsync #sshpass
|
||||||
- sshpass -h
|
#- sshpass -h
|
||||||
# write the ssh key to disk for rsync handshake to remote server
|
# write the ssh key to disk for rsync handshake to remote server
|
||||||
- ssh-keygen -t ed25519 -f ~/.ssh/id_rsa -N ''
|
#- ssh-keygen -t ed25519 -f ~/.ssh/id_rsa -N ''
|
||||||
- cat ~/.ssh/id_rsa.pub
|
#- touch ~/password.txt
|
||||||
- eval `ssh-agent -s`
|
#- echo -n $SERVER_PASS > ~/password.txt
|
||||||
- ssh-add ~/.ssh/id_rsa
|
#- echo $SERVER_PASS
|
||||||
- touch ~/password.txt
|
#- cat ~/password.txt
|
||||||
- echo -n $SERVER_PASS > ~/password.txt
|
#- sshpass -vp $SERVER_PASS ssh-copy-id -i ~/.ssh/id_rsa.pub odinzu@45.33.119.101
|
||||||
- echo $SERVER_PASS
|
|
||||||
- cat ~/password.txt
|
|
||||||
- sshpass -vp $SERVER_PASS ssh-copy-id -i ~/.ssh/id_rsa.pub odinzu@45.33.119.101
|
|
||||||
#- mkdir -p ~/.ssh/
|
#- mkdir -p ~/.ssh/
|
||||||
#- touch ~/.ssh/id_rsa
|
#- touch ~/.ssh/id_rsa
|
||||||
#- touch ~/.ssh/id_rsa.pub
|
#- touch ~/.ssh/id_rsa.pub
|
||||||
#- echo -nv $RSA_KEY > ~/.ssh/id_rsa
|
- echo -nv $RSA_KEY > ~/.ssh/id_rsa
|
||||||
#- echo -nv $RSA_PUB_KEY > ~/.ssh/id_rsa.pub
|
- echo -nv $RSA_PUB_KEY > ~/.ssh/id_rsa.pub
|
||||||
|
- cat ~/.ssh/id_rsa.pub
|
||||||
|
- eval `ssh-agent -s`
|
||||||
|
- ssh-add ~/.ssh/id_rsa
|
||||||
#- cp /root/.ssh/id_rsa.pub ~/.ssh/authorized_keys
|
#- cp /root/.ssh/id_rsa.pub ~/.ssh/authorized_keys
|
||||||
- chmod 600 ~/.ssh/id_rsa
|
#- chmod 600 ~/.ssh/id_rsa
|
||||||
#- ls -al /root/.ssh/
|
#- ls -al /root/.ssh/
|
||||||
|
|
||||||
# setup Jekyll permissions and build jekyll site
|
# setup Jekyll permissions and build jekyll site
|
||||||
|
Loading…
x
Reference in New Issue
Block a user