From e463d8d4e8741f8e8ee66f584a3ab49768689343 Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 5 Nov 2022 20:02:51 +0100 Subject: [PATCH] Update drone config --- .drone.yml | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 457293c..db821dd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,16 +6,24 @@ name: default steps: - name: build - image: alpine:3.12 - volumes: - - name: site - path: /tmp/site - commands: - - apk add --no-cache hugo - - hugo - - cp -r public/* /tmp/site/ + image: klakegg/hugo:ext-alpine-ci -volumes: - - name: site - host: - path: /srv/www/sites/www.luj0ga.de + - name: deploy + image: appleboy/drone-scp + settings: + host: dragon.luj0ga.de + port: 4222 + username: www-data + key: + from_secret: ssh_key + passphrase: + from_secret: ssh_passphrase + target: /var/www/www.luj0ga.de/ + source: public/* + strip_components: 1 + rm: yes + when: + event: + - push + branch: + - master