adding drone.yml
This commit is contained in:
parent
57d065ca7c
commit
601463564e
|
@ -0,0 +1,30 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: make-then-deploy
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: alpine
|
||||
commands:
|
||||
- mkdocs build
|
||||
|
||||
---
|
||||
name: scp files
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host:
|
||||
from_secret: substationhost
|
||||
username:
|
||||
from_secret: scp_username
|
||||
password:
|
||||
from_secret: ssh_key
|
||||
port: 22
|
||||
command_timeout: 2m
|
||||
target: /home/${DRONE_REPO_OWNER}/public_html/${DRONE_REPO_NAME}
|
||||
source: substation/
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
Loading…
Reference in New Issue