try instrumentisto/rsync-ssh image
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
7e485e0089
commit
34d109ca5e
26
.drone.yml
26
.drone.yml
@ -22,21 +22,29 @@ name: deploy
|
|||||||
steps:
|
steps:
|
||||||
- name: hugo-rsync-deploy
|
- name: hugo-rsync-deploy
|
||||||
pull: always
|
pull: always
|
||||||
image: drillster/drone-rsync
|
image: instrumentisto/rsync-ssh
|
||||||
hosts: [ "$HUGO_HOST" ]
|
commands:
|
||||||
from_secret: hugo_host
|
- git submodule init
|
||||||
user: HUGO_USER
|
- git submodule update
|
||||||
from_secret: hugo_user
|
- rm -rfv ./public
|
||||||
key: "$HUGO_KEY"
|
- hugo --gc=true --minify
|
||||||
|
- echo "$HUGO_KEY" > ~/hugo_deploy
|
||||||
|
- chmod -v 600 ~/hugo_deploy #hellyeah
|
||||||
|
- rsync -ave 'ssh -vvvv -i ~/hugo_deploy -o KexAlgorithms=curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256 -o PreferredAuthentications=publickey -o PasswordAuthentication=no -c aes256-ctr,aes256-cbc -o StrictHostKeyChecking=no' --delete public/ $HUGO_USER@$HUGO_HOST:$HUGO_DIR || true
|
||||||
|
- shred -zuv 7 ~/hugo_deploy || true
|
||||||
|
environment:
|
||||||
|
HUGO_KEY:
|
||||||
from_secret: hugo_key
|
from_secret: hugo_key
|
||||||
source: ./public
|
HUGO_USER:
|
||||||
target: $HUGO_DIR
|
from_secret: hugo_user
|
||||||
|
HUGO_HOST:
|
||||||
|
from_secret: hugo_host
|
||||||
|
HUGO_DIR:
|
||||||
from_secret: hugo_dir
|
from_secret: hugo_dir
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: notifications
|
name: notifications
|
||||||
|
Loading…
Reference in New Issue
Block a user