switch to drone ssh plugin instead of runner
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c2556fc2b4
commit
0cac50609d
54
.drone.yml
54
.drone.yml
@ -1,31 +1,37 @@
|
|||||||
---
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: ssh
|
type: docker
|
||||||
name: production
|
name: default
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
|
|
||||||
server:
|
|
||||||
host: 192.168.10.119
|
|
||||||
user: root
|
|
||||||
password:
|
|
||||||
from_secret: password
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: initialize
|
- name: initialize
|
||||||
commands:
|
image: appleboy/drone-ssh
|
||||||
- git submodule update --init
|
settings:
|
||||||
- hugo version
|
host:
|
||||||
# - ln -s /home/hebron/hugo_resources/production resources
|
- homelab-blog.lan
|
||||||
|
username: root
|
||||||
- name: build
|
password:
|
||||||
commands:
|
from_secret: password
|
||||||
- hugo --gc --minify -b https://blog.broillet.ch/
|
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
|
||||||
|
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
|
# - name: vps-deploy
|
||||||
# commands:
|
# commands:
|
||||||
# - rsync -ah --stats public/ cirrus:/var/www/html/blog/${DRONE_COMMIT_SHA:0:8}
|
# - rsync -ah --stats public/ cirrus:/var/www/html/blog/${DRONE_COMMIT_SHA:0:8}
|
||||||
# - ssh cirrus -f "ln -sfn /var/www/html/blog/${DRONE_COMMIT_SHA:0:8} /var/www/html/blog/deployed"
|
# - ssh cirrus -f "ln -sfn /var/www/html/blog/${DRONE_COMMIT_SHA:0:8} /var/www/html/blog/deployed"
|
||||||
# - ssh cirrus -f "find /var/www/html/blog/ -maxdepth 1 -mtime +1 -type d -exec rm -r {} \;"
|
# - ssh cirrus -f "find /var/www/html/blog/ -maxdepth 1 -mtime +1 -type d -exec rm -r {} \;"
|
||||||
|
Loading…
Reference in New Issue
Block a user