From ecb1f6e4d4aa3226be3d4ee8020beaba8b9389f0 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Sun, 11 Jun 2023 12:38:05 +0200 Subject: [PATCH] update drone.yml --- .drone.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.drone.yml b/.drone.yml index c6cf33d..fc43e8f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,27 +1,27 @@ kind: pipeline -type: docker name: default steps: - - name: build - image: appleboy/drone-ssh - settings: - host: - - homelab-blog.lan - username: root - key: - from_secret: ssh_key - port: 22 - command_timeout: 1m - script: - - apt install hugo -y - - git submodule update --init - - hugo version - # - ln -s /home/hebron/hugo_resources/production resources - - hugo --gc --minify -b https://blog.broillet.ch/ +- name: ssh + image: appleboy/drone-ssh + settings: + host: + - homelab-blog.lan + username: root + key: + from_secret: ssh_key + port: 22 + command_timeout: 2m + script: + - apt install hugo -y + - git submodule update --init + - hugo version + # - ln -s /home/hebron/hugo_resources/production resources + - hugo --gc --minify -b https://blog.broillet.ch/ + # - 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 {} \;" +# - ssh cirrus -f "find /var/www/html/blog/ -maxdepth 1 -mtime +1 -type d -exec rm -r {} \;" \ No newline at end of file