generalise
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
225e597060
commit
32cfda4825
|
@ -12,6 +12,7 @@ steps:
|
||||||
from_secret: user
|
from_secret: user
|
||||||
SSH_KEY:
|
SSH_KEY:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
|
SRC: content/*
|
||||||
DEST: gemini/content
|
DEST: gemini/content
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
|
@ -28,4 +29,4 @@ steps:
|
||||||
- echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
- echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||||
- cat ~/.ssh/config
|
- cat ~/.ssh/config
|
||||||
- ssh "$${USER}@$${HOST}" "[[ -d $${DEST} ]] && rm -r $${DEST}"
|
- ssh "$${USER}@$${HOST}" "[[ -d $${DEST} ]] && rm -r $${DEST}"
|
||||||
- rsync -rP content/* "$${USER}@$${HOST}:$${DEST}"
|
- rsync -rP $SRC "$${USER}@$${HOST}:$${DEST}"
|
||||||
|
|
Loading…
Reference in New Issue