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