27 lines
748 B
YAML
27 lines
748 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: ssh
|
|
image: appleboy/drone-ssh
|
|
settings:
|
|
host:
|
|
- homelab-blog.lan
|
|
username: root
|
|
key:
|
|
from_secret: ssh_key
|
|
port: 22
|
|
command_timeout: 2m
|
|
script:
|
|
- apt install hugo -y
|
|
- git submodule update --init
|
|
- hugo version
|
|
# - ln -s /home/hebron/hugo_resources/production resources
|
|
- hugo --gc --minify -b https://blog.broillet.ch/
|
|
|
|
|
|
# - name: vps-deploy
|
|
# commands:
|
|
# - rsync -ah --stats public/ cirrus:/var/www/html/blog/${DRONE_COMMIT_SHA:0:8}
|
|
# - ssh cirrus -f "ln -sfn /var/www/html/blog/${DRONE_COMMIT_SHA:0:8} /var/www/html/blog/deployed"
|
|
# - ssh cirrus -f "find /var/www/html/blog/ -maxdepth 1 -mtime +1 -type d -exec rm -r {} \;" |