use secrets
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
039529d781
commit
e04adf5410
|
@ -13,6 +13,7 @@ steps:
|
|||
SSH_KEY:
|
||||
from_secret: ssh_key
|
||||
REPO: https://git.pizzawednesday.club/ktyl/period3.xyz
|
||||
DEST: gemini/content
|
||||
|
||||
commands:
|
||||
- apt-get update -qq > /dev/null
|
||||
|
@ -27,5 +28,5 @@ steps:
|
|||
# skip key checking
|
||||
- echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||
- cat ~/.ssh/config
|
||||
- ssh "$${USER}@$${HOST}" "[[ -d gemini/content ]] && rm -r gemini/content"
|
||||
- rsync -rP content/* gemini@period3.xyz:gemini/content
|
||||
- ssh "$${USER}@$${HOST}" "[[ -d $${DEST} ]] && rm -r $${DEST}"
|
||||
- rsync -rP content/* "$${USER}@$${HOST}:$${DEST}"
|
||||
|
|
Loading…
Reference in New Issue