switch to drone ssh plugin instead of runner
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Mathieu Broillet 2023-06-11 12:15:50 +02:00
parent c2556fc2b4
commit 0cac50609d
Signed by: mathieu
GPG Key ID: A08E484FE95074C1

View File

@ -1,29 +1,35 @@
---
kind: pipeline
type: ssh
name: production
trigger:
branch:
- main
server:
host: 192.168.10.119
user: root
password:
from_secret: password
type: docker
name: default
steps:
- name: initialize
commands:
image: appleboy/drone-ssh
settings:
host:
- homelab-blog.lan
username: root
password:
from_secret: password
port: 22
command_timeout: 1m
script:
- apt install hugo -y
- git submodule update --init
- hugo version
# - ln -s /home/hebron/hugo_resources/production resources
- name: build
commands:
image: appleboy/drone-ssh
settings:
host:
- homelab-blog.lan
username: root
password:
from_secret: password
port: 22
command_timeout: 1m
script:
- 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}