get user and host from secrets
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7ef8d99cef
commit
039529d781
|
@ -8,8 +8,8 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
HOST:
|
HOST:
|
||||||
from_secret: host
|
from_secret: host
|
||||||
USERNAME:
|
USER:
|
||||||
from_secret: username
|
from_secret: user
|
||||||
SSH_KEY:
|
SSH_KEY:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
REPO: https://git.pizzawednesday.club/ktyl/period3.xyz
|
REPO: https://git.pizzawednesday.club/ktyl/period3.xyz
|
||||||
|
@ -27,5 +27,5 @@ steps:
|
||||||
# skip key checking
|
# skip key checking
|
||||||
- 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 gemini@period3.xyz "[[ -d gemini/content ]] && rm -r gemini/content"
|
- ssh "$${USER}@$${HOST}" "[[ -d gemini/content ]] && rm -r gemini/content"
|
||||||
- rsync -rP content/* gemini@period3.xyz:gemini/content
|
- rsync -rP content/* gemini@period3.xyz:gemini/content
|
||||||
|
|
Loading…
Reference in New Issue