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