2020-07-12 07:58:38 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2020-07-12 09:48:17 +00:00
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --recursive --init
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: plugins/hugo
|
2020-07-12 07:58:38 +00:00
|
|
|
settings:
|
|
|
|
validate: true
|
2020-07-12 08:01:14 +00:00
|
|
|
url: http://moonside.games/docs/encompass
|
2020-07-12 07:58:38 +00:00
|
|
|
|
2020-07-12 09:48:17 +00:00
|
|
|
# - 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
|
|
|
|
|
2020-07-12 07:58:38 +00:00
|
|
|
- name: deploy
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
2020-07-12 09:48:17 +00:00
|
|
|
host: moonside.games
|
|
|
|
username: hugo
|
|
|
|
password:
|
|
|
|
from_secret: scp_key
|
|
|
|
port: 22
|
|
|
|
target: /var/www/html/docs/encompass
|
|
|
|
source: ./public
|