This commit is contained in:
parent
1af1581923
commit
992029f650
12
.drone.yml
12
.drone.yml
@ -24,22 +24,22 @@ steps:
|
||||
pull: always
|
||||
image: immawanderer/archlinux-hugo:latest
|
||||
environment:
|
||||
hugo_key:
|
||||
HUGO_KEY:
|
||||
from_secret: hugo_key
|
||||
hugo_user:
|
||||
HUGO_USER:
|
||||
from_secret: hugo_user
|
||||
hugo_host:
|
||||
HUGO_HOST:
|
||||
from_secret: hugo_host
|
||||
hugo_dir:
|
||||
HUGO_DIR:
|
||||
from_secret: hugo_dir
|
||||
commands:
|
||||
- git submodule init
|
||||
- git submodule update
|
||||
- rm -rfv ./public
|
||||
- hugo --gc=true --minify
|
||||
- echo "$hugo_key" > hugo_deploy
|
||||
- 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
|
||||
- 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
|
||||
- shred -zuv 7 hugo_deploy || true
|
||||
when:
|
||||
status:
|
||||
|
Loading…
Reference in New Issue
Block a user