33 lines
523 B
YAML
33 lines
523 B
YAML
|
kind: pipeline
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
image: plugins/hugo
|
||
|
settings:
|
||
|
pull: always
|
||
|
url:
|
||
|
from_secret: domain
|
||
|
validate: true
|
||
|
|
||
|
- name: deploy
|
||
|
image: appleboy/drone-scp
|
||
|
settings:
|
||
|
host:
|
||
|
from_secret: ssh_host
|
||
|
target:
|
||
|
from_secret: site_path
|
||
|
source: public/*
|
||
|
username:
|
||
|
from_secret: ssh_username
|
||
|
password:
|
||
|
from_secret: ssh_password
|
||
|
port:
|
||
|
from_secret: ssh_port
|
||
|
when:
|
||
|
branch:
|
||
|
- master
|
||
|
event:
|
||
|
exclude:
|
||
|
- pull_request
|