This commit is contained in:
parent
0cac50609d
commit
b748f3aaff
17
.drone.yml
17
.drone.yml
@ -3,14 +3,15 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: initialize
|
- name: build
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
- homelab-blog.lan
|
- homelab-blog.lan
|
||||||
|
- 192.168.10.119
|
||||||
username: root
|
username: root
|
||||||
password:
|
password:
|
||||||
from_secret: password
|
from_secret: ssh_password
|
||||||
port: 22
|
port: 22
|
||||||
command_timeout: 1m
|
command_timeout: 1m
|
||||||
script:
|
script:
|
||||||
@ -18,18 +19,8 @@ steps:
|
|||||||
- 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
|
||||||
- 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/
|
- 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}
|
||||||
|
Loading…
Reference in New Issue
Block a user