From 0a8feda2309926fc9a43cc93fbd080d64b3c7173 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sun, 12 Jul 2020 09:48:17 +0000 Subject: [PATCH] drone (#1) --- .drone.yml | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index e51d620..f4c071b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,21 +3,38 @@ type: docker name: default steps: -- name: hugo - image: cbrgm/drone-hugo:latest +- name: submodules + image: alpine/git + commands: + - git submodule update --recursive --init + +- name: build + image: plugins/hugo settings: validate: true - output: public url: http://moonside.games/docs/encompass +# - name: deploy +# image: drillster/drone-rsync +# settings: +# hosts: +# - moonside.games +# target: /var/www/docs/encompass +# source: public/ +# recursive: true +# user: hugo +# secrets: [ rsync_key ] +# when: +# branch: +# - main + - name: deploy image: appleboy/drone-scp settings: - host: - - %SCP_HOSTNAME% - port: %SCP_PORT% - username: %SCP_USERNAME% - target: %SCP_TARGET_DIRECTORY% - source: public/ - key: - from_secret: ssh_key + host: moonside.games + username: hugo + password: + from_secret: scp_key + port: 22 + target: /var/www/html/docs/encompass + source: ./public