Add Drone CI automatic deployment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-09-02 23:15:49 +02:00
parent 1182806d3a
commit eca846a0c3
5 changed files with 1202 additions and 2 deletions

37
.drone.yml Normal file
View File

@@ -0,0 +1,37 @@
kind: pipeline
name: default
steps:
- name: prepare
image: alpine
commands:
- apk add git
- git submodule update --init --recursive
- name: build
image: alpine
commands:
- apk add hugo
- mkdir blog
- hugo -d blog
- name: deploy
image: appleboy/drone-scp
settings:
host:
from_secret: ssh_host
target:
from_secret: ssh_target
source: blog/*
username:
from_secret: ssh_username
password:
from_secret: ssh_password
port:
from_secret: ssh_port
when:
branch:
- master
event:
exclude:
- pull_request