revert to ssh runner and sshkey
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4fc6c360e2
commit
d5781f0fb9
34
.drone.yml
34
.drone.yml
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user