Update '.drone.yml'
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
8d320ee753
commit
8f1d6497e9
15
.drone.yml
15
.drone.yml
|
@ -40,6 +40,21 @@ steps:
|
|||
# target: {from_secret: SCP_TARGET_DIRECTORY}
|
||||
# #target: /srv/apps/blog/data/www/public
|
||||
# rm: true
|
||||
- name: clone
|
||||
environment:
|
||||
SSH_KEY:
|
||||
from_secret: SCP_KEY
|
||||
SSH_HOSTNAME:
|
||||
from_secret: SCP_HOSTNAME
|
||||
SSH_USER:
|
||||
from_secret: SCP_USER
|
||||
SSH_PORT:
|
||||
from_secret: SCP_PORT
|
||||
SSH_TARGET:
|
||||
from_secret: SCP_TARGET_DIRECTORY
|
||||
commands:
|
||||
- echo "$SCP_KEY" > $HOME/.ssh/id_rsa
|
||||
- scp -rP public/ $SCP_PORT $SCP_USER@$SCP_HOSTNAME:$SCP_TARGET_DIRECTORY
|
||||
|
||||
- name: rereveille_toi
|
||||
image: appleboy/drone-ssh
|
||||
|
|
Loading…
Reference in a new issue