This commit is contained in:
parent
a5675c9024
commit
cfcc02b96b
10
.drone.yml
10
.drone.yml
@ -24,14 +24,14 @@ steps:
|
||||
environment:
|
||||
OL:
|
||||
from_secret: hugo_user
|
||||
OL_P:
|
||||
from_secret: hugo_passwd
|
||||
OL_K:
|
||||
from_secret: hugo_k
|
||||
OL_D:
|
||||
from_secret: hugo_dir
|
||||
commands:
|
||||
- export DAT_DIR=$OL_D
|
||||
- export RSYNC_PASSWORD=$OL_P
|
||||
- rsync --rsh="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" -av --delete chown $OL public/ $OL@dotya.ml:$DAT_DIR
|
||||
- echo $OL_K > ol_k
|
||||
- chmod -v 0600 ./ol_k
|
||||
- rsync --rsh="ssh -i ./ol_k -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" -av --delete chown $OL public/ $OL@dotya.ml:$OL_D
|
||||
|
||||
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user