edited 404 page + changed deploy part of pipeline
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
surtur 2020-03-10 01:24:45 +01:00
parent 2f5ab75f0e
commit b645652f54
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 25 additions and 7 deletions

View File

@ -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

14
layouts/404.html Normal file

File diff suppressed because one or more lines are too long