This commit is contained in:
parent
ee75e2f5be
commit
7be4704325
12
.drone.yml
12
.drone.yml
@ -24,18 +24,12 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
OL:
|
OL:
|
||||||
from_secret: hugo_user
|
from_secret: hugo_user
|
||||||
OL_K:
|
OL_P:
|
||||||
from_secret: hugo_k
|
from_secret: hugo_passwd
|
||||||
OL_K_PUB:
|
|
||||||
from_secret: hugo_k_pub
|
|
||||||
OL_D:
|
OL_D:
|
||||||
from_secret: hugo_dir
|
from_secret: hugo_dir
|
||||||
commands:
|
commands:
|
||||||
- printf %s "$OL_K" > ol_k
|
- RSYNC_PASSWORD=$OL_P rsync --rsh="ssh -v -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=password" -av --delete chown $OL public/ $OL@dotya.ml:$OL_D
|
||||||
- printf %s "$OL_K_PUB" > ol_k.pub
|
|
||||||
- chmod -v 0600 ./ol_k
|
|
||||||
- chmod -v 0644 ./ol_k.pub
|
|
||||||
- rsync --rsh="ssh -v -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