diff --git a/.drone.yml b/.drone.yml index 3390902..4de1c97 100644 --- a/.drone.yml +++ b/.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 diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..4ead1fa --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,14 @@ +{{ define "main" }} +
+

+ 404-lighthouse +

+ +
+{{ end }}