refactor: sshpass is now part of the image
All checks were successful
continuous-integration/drone/push Build is passing

* and also a redundant whitespace removed
This commit is contained in:
surtur 2020-07-09 12:51:43 +02:00
parent 0f112e9522
commit 643926ab5e
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -29,8 +29,6 @@ steps:
OL_D:
from_secret: hugo_dir
commands:
- apk update
- apk add sshpass --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
- echo $OL_P > nupass
- export RSYNC_RSH='sshpass -f ./nupass ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
- rsync -av --delete --chown $OL public/ $OL@dotya.ml:$OL_D
@ -67,7 +65,7 @@ steps:
image: appleboy/drone-discord:latest
settings:
message: >
{{#success build.status}}
{{#success build.status}}
✅ [Build #{{build.number}}]({{build.link}}) of `{{repo.name}}` has been successfully deployed.
event: **`{{build.event}}`**
commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`