encompass-cs-docs/.drone.yml

41 lines
744 B
YAML
Raw Normal View History

2020-07-12 07:58:38 +00:00
kind: pipeline
type: docker
name: default
2020-07-12 08:21:40 +00:00
steps:
2020-07-12 08:20:37 +00:00
- name: submodules
image: alpine/git
commands:
- git submodule update --recursive --init
2020-07-12 08:19:03 +00:00
2020-07-12 08:20:37 +00:00
- name: build
2020-07-12 08:25:45 +00:00
image: plugins/hugo
settings:
validate: true
url: http://moonside.games/docs/encompass
2020-07-12 07:58:38 +00:00
2020-07-12 09:13:57 +00:00
# - name: deploy
2020-07-12 09:19:25 +00:00
# image: drillster/drone-rsync
2020-07-12 09:13:57 +00:00
# settings:
2020-07-12 09:19:25 +00:00
# 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: moonside.games
username: hugo
key:
from_secret: rsync_key
port: 22
target: /var/www/html/docs/encompass
source: ./public