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 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: steps:
- name: ssh - name: initialize
image: appleboy/drone-ssh commands:
settings: - git submodule update --init
host: homelab-blog.lan - hugo version
username: root # - ln -s /home/hebron/hugo_resources/production resources
key_path: /root/.ssh/id_rsa
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/
volumes: - name: build
- name: ssh_key commands:
host: - hugo --gc --minify -b https://blog.broillet.ch/
path: /root/.ssh/id_rsa
# - name: vps-deploy # - name: vps-deploy
# commands: # commands: