|
|
@ -30,10 +30,10 @@ steps: |
|
|
environment: |
|
|
environment: |
|
|
SSHKEY: |
|
|
SSHKEY: |
|
|
from_secret: drone_ci_sshkey_file |
|
|
from_secret: drone_ci_sshkey_file |
|
|
GIT_HOST: 192.168.0.2 |
|
|
|
|
|
|
|
|
GIT_HOST: git.1000my.com |
|
|
GIT_PORT: 22 |
|
|
GIT_PORT: 22 |
|
|
commands: |
|
|
commands: |
|
|
- ls -la |
|
|
|
|
|
|
|
|
- ping git.1000my.com -c 1 |
|
|
- mkdir -p $HOME/.ssh/ |
|
|
- mkdir -p $HOME/.ssh/ |
|
|
- echo $SSHKEY | md5sum |
|
|
- echo $SSHKEY | md5sum |
|
|
- echo $SSHKEY > ~/.ssh/id_rsa && chmod 600 $HOME/.ssh/id_rsa |
|
|
- echo $SSHKEY > ~/.ssh/id_rsa && chmod 600 $HOME/.ssh/id_rsa |
|
|
|