This commit is contained in:
parent
4c0f6b59fb
commit
fedf5013ef
14
.drone.yml
14
.drone.yml
@ -8,7 +8,7 @@ trigger:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
server:
|
server:
|
||||||
host: 192.168.10.119
|
host: homelab-blog.lan
|
||||||
user: root
|
user: root
|
||||||
ssh_key:
|
ssh_key:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
@ -18,22 +18,12 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- git submodule update --init
|
- git submodule update --init
|
||||||
- hugo version
|
- hugo version
|
||||||
- pwd && ls -l
|
|
||||||
# - ln -s /home/hebron/hugo_resources/production resources
|
# - ln -s /home/hebron/hugo_resources/production resources
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
commands:
|
commands:
|
||||||
- hugo --gc --minify -b https://blog.broillet.ch/
|
- hugo --gc --minify -b https://blog.broillet.ch/
|
||||||
- pwd && ls -l
|
|
||||||
|
|
||||||
- name: copy built website
|
- name: copy built website
|
||||||
commands:
|
commands:
|
||||||
- pwd && ls -l
|
- cp -R public/ /var/www/html/blog/
|
||||||
- sleep 30
|
|
||||||
- cp public/ /var/www/html/blog/
|
|
||||||
|
|
||||||
# - name: vps-deploy
|
|
||||||
# commands:
|
|
||||||
# - 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 "find /var/www/html/blog/ -maxdepth 1 -mtime +1 -type d -exec rm -r {} \;"
|
|
Loading…
Reference in New Issue
Block a user