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
|
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:
|
|
||||||
host: homelab-blog.lan
|
|
||||||
username: root
|
|
||||||
key_path: /root/.ssh/id_rsa
|
|
||||||
port: 22
|
|
||||||
command_timeout: 2m
|
|
||||||
script:
|
|
||||||
- apt install hugo -y
|
|
||||||
- git submodule update --init
|
- git submodule update --init
|
||||||
- hugo version
|
- hugo version
|
||||||
# - ln -s /home/hebron/hugo_resources/production resources
|
# - 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:
|
||||||
|
Loading…
Reference in New Issue
Block a user