use secrets
continuous-integration/drone/push Build is passing Details

This commit is contained in:
ktyl 2022-09-26 22:07:14 +01:00
parent 039529d781
commit e04adf5410
1 changed files with 3 additions and 2 deletions

View File

@ -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}"