blog/.drone.yml
Mathieu Broillet fedf5013ef
Some checks failed
continuous-integration/drone/push Build is failing
update drone.yml
2023-06-11 12:59:14 +02:00

29 lines
463 B
YAML

---
kind: pipeline
type: ssh
name: production
trigger:
branch:
- main
server:
host: homelab-blog.lan
user: root
ssh_key:
from_secret: ssh_key
steps:
- name: initialize
commands:
- git submodule update --init
- hugo version
# - ln -s /home/hebron/hugo_resources/production resources
- name: build
commands:
- hugo --gc --minify -b https://blog.broillet.ch/
- name: copy built website
commands:
- cp -R public/ /var/www/html/blog/