revert to ssh runner and sshkey
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mathieu Broillet 2023-06-11 12:50:50 +02:00
parent 4fc6c360e2
commit d5781f0fb9
Signed by: mathieu
GPG Key ID: A08E484FE95074C1

View File

@ -1,26 +1,28 @@
---
kind: pipeline
name: default
type: ssh
name: production
trigger:
branch:
- main
server:
host: 192.168.10.119
user: root
ssh_key:
from_secret: ssh_key
steps:
- name: ssh
image: appleboy/drone-ssh
settings:
host: homelab-blog.lan
username: root
key_path: /root/.ssh/id_rsa
port: 22
command_timeout: 2m
script:
- apt install hugo -y
- name: initialize
commands:
- git submodule update --init
- hugo version
# - ln -s /home/hebron/hugo_resources/production resources
- hugo --gc --minify -b https://blog.broillet.ch/
volumes:
- name: ssh_key
host:
path: /root/.ssh/id_rsa
- name: build
commands:
- hugo --gc --minify -b https://blog.broillet.ch/
# - name: vps-deploy
# commands: