This commit is contained in:
parent
81ef88177f
commit
ecb1f6e4d4
36
.drone.yml
36
.drone.yml
@ -1,27 +1,27 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: ssh
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
- homelab-blog.lan
|
- homelab-blog.lan
|
||||||
username: root
|
username: root
|
||||||
key:
|
key:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
port: 22
|
port: 22
|
||||||
command_timeout: 1m
|
command_timeout: 2m
|
||||||
script:
|
script:
|
||||||
- apt install hugo -y
|
- 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/
|
- 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