2020-09-02 21:15:49 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
2020-09-03 19:48:21 +00:00
|
|
|
steps:
|
2020-09-03 19:45:26 +00:00
|
|
|
# - name: prepare
|
|
|
|
# image: alpine
|
|
|
|
# commands:
|
|
|
|
# - apk add git
|
|
|
|
# - git submodule update --init --recursive
|
2020-09-02 21:15:49 +00:00
|
|
|
|
|
|
|
- name: build
|
2020-09-03 18:23:30 +00:00
|
|
|
image: silex/emacs:27-alpine
|
2020-09-02 21:15:49 +00:00
|
|
|
commands:
|
2020-09-03 19:45:26 +00:00
|
|
|
- apk add hugo git
|
|
|
|
- git submodule update --init --recursive
|
2020-09-02 21:15:49 +00:00
|
|
|
- mkdir blog
|
2020-09-03 18:23:30 +00:00
|
|
|
- emacs --script .export.el
|
2020-09-02 21:15:49 +00:00
|
|
|
- hugo -d blog
|
|
|
|
|
|
|
|
- name: deploy
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
from_secret: ssh_host
|
|
|
|
target:
|
|
|
|
from_secret: ssh_target
|
|
|
|
source: blog/*
|
2020-09-03 10:58:22 +00:00
|
|
|
strip_components: 1
|
2020-09-02 21:15:49 +00:00
|
|
|
username:
|
|
|
|
from_secret: ssh_username
|
|
|
|
password:
|
|
|
|
from_secret: ssh_password
|
|
|
|
port:
|
|
|
|
from_secret: ssh_port
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|