This repository has been archived on 2021-09-04. You can view files and clone it, but cannot push or open issues/pull-requests.
blog.tdem.in/.drone.yml

38 lines
816 B
YAML

kind: pipeline
name: hugo build
steps:
- name: hugo build
image: cibuilds/hugo:0.86
volumes:
- name: hugo
path: /static
commands:
- mkdir /tmp/src
- cp -r * /tmp/src
- hugo -d /tmp/static -s /tmp/src
- htmlproofer /tmp/static --allow-hash-href --check-html --empty-alt-ignore --disable-external
- sudo find /static -mindepth 1 -delete
- sudo cp -r /tmp/static /
- sudo chown -R 1000:1000 /static
environment:
HUGO_ENV: production
- name: gmnhg build
image: ghcr.io/tdemin/gmnhg:v0.3.0
volumes:
- name: gmnhg
path: /static
commands:
- gmnhg -output /tmp/static
- find /static -mindepth 1 -delete
- cp -r /tmp/static /
- chown -R 1000:1000 /static
volumes:
- name: hugo
host:
path: /srv/static/blog.tdem.in
- name: gmnhg
host:
path: /srv/static/gemini