drone #1
39
.drone.yml
39
.drone.yml
|
@ -3,21 +3,38 @@ type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: hugo
|
- name: submodules
|
||||||
image: cbrgm/drone-hugo:latest
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git submodule update --recursive --init
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: plugins/hugo
|
||||||
settings:
|
settings:
|
||||||
validate: true
|
validate: true
|
||||||
output: public
|
|
||||||
url: http://moonside.games/docs/encompass
|
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
|
- name: deploy
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
settings:
|
settings:
|
||||||
host:
|
host: moonside.games
|
||||||
- %SCP_HOSTNAME%
|
username: hugo
|
||||||
port: %SCP_PORT%
|
password:
|
||||||
username: %SCP_USERNAME%
|
from_secret: scp_key
|
||||||
target: %SCP_TARGET_DIRECTORY%
|
port: 22
|
||||||
source: public/
|
target: /var/www/html/docs/encompass
|
||||||
key:
|
source: ./public
|
||||||
from_secret: ssh_key
|
|
||||||
|
|
Loading…
Reference in New Issue