Update '.drone.yml'
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
ewen 2022-02-03 20:10:42 +00:00
parent 8d320ee753
commit 8f1d6497e9

View file

@ -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