private_mirror/.drone.yml

37 lines
667 B
YAML
Raw Normal View History

kind: pipeline
name: default
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build
image: xperimental/hugo:0.58.3
commands:
- hugo
- name: publish
image: alpine
volumes:
- name: output
path: /output
commands:
- apk add rsync
- rsync -av --del ./public/ /output/
- chown -R 33:33 /output
when:
branch:
- master
- name: verify
image: xperimental/linky:0.3.0
commands:
- linky https://www.hacknology.de
when:
branch:
- master
volumes:
- name: output
host:
path: /var/www/html