blog/.drone.yml
Lucien Cartier-Tilet c0f5852a0c
Some checks failed
continuous-integration/drone/push Build is failing
test CI
2020-09-03 21:48:21 +02:00

41 lines
739 B
YAML

kind: pipeline
name: default
steps:
# - name: prepare
# image: alpine
# commands:
# - apk add git
# - git submodule update --init --recursive
- name: build
image: silex/emacs:27-alpine
commands:
- apk add hugo git
- git submodule update --init --recursive
- mkdir blog
- emacs --script .export.el
- hugo -d blog
- name: deploy
image: appleboy/drone-scp
settings:
host:
from_secret: ssh_host
target:
from_secret: ssh_target
source: blog/*
strip_components: 1
username:
from_secret: ssh_username
password:
from_secret: ssh_password
port:
from_secret: ssh_port
when:
branch:
- master
event:
exclude:
- pull_request