edited 404 page + changed deploy part of pipeline
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
2f5ab75f0e
commit
b645652f54
18
.drone.yml
18
.drone.yml
|
@ -20,17 +20,17 @@ type: docker
|
|||
name: deploy
|
||||
|
||||
steps:
|
||||
- name: hugo-rsync-deploy
|
||||
pull: always
|
||||
image: immawanderer/archlinux-hugo
|
||||
- name: rsync-deploy
|
||||
pull: if-not-exists
|
||||
image: immawanderer/archlinux-hugo:latest
|
||||
commands:
|
||||
- git submodule init
|
||||
- git submodule update
|
||||
- #rm -rfv ./public
|
||||
- rm -rfv ./public
|
||||
- hugo --gc=true --minify
|
||||
- echo "$HUGO_KEY" > ~/hugo_deploy
|
||||
- chmod -v 600 ~/hugo_deploy #hellyeah
|
||||
- rsync -ave 'ssh -vv -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
|
||||
- echo "$HUGO_KEY" > ./hugo_deploy
|
||||
- chmod -v 600 ./hugo_deploy
|
||||
- rsync -ave "ssh -vv -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 -n 7 ~/hugo_deploy
|
||||
environment:
|
||||
HUGO_KEY:
|
||||
|
@ -45,6 +45,10 @@ steps:
|
|||
status:
|
||||
- success
|
||||
|
||||
depends_on:
|
||||
- test-build
|
||||
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: notifications
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue