blog/.drone.yml
Mathieu Broillet a2e2fc6093
All checks were successful
continuous-integration/drone/push Build is passing
update drone.yml
2023-06-11 12:59:48 +02:00

30 lines
487 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:
- mkdir -p /var/www/html/
- cp -R public/* /var/www/html/