From fedf5013ef79bc898ec61af81887e0dca4b54246 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Sun, 11 Jun 2023 12:59:14 +0200 Subject: [PATCH] update drone.yml --- .drone.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 191642a..acf7005 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ trigger: - main server: - host: 192.168.10.119 + host: homelab-blog.lan user: root ssh_key: from_secret: ssh_key @@ -18,22 +18,12 @@ steps: commands: - git submodule update --init - hugo version - - pwd && ls -l # - ln -s /home/hebron/hugo_resources/production resources - name: build commands: - hugo --gc --minify -b https://blog.broillet.ch/ - - pwd && ls -l - name: copy built website commands: - - pwd && ls -l - - 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 {} \;" \ No newline at end of file + - cp -R public/ /var/www/html/blog/ \ No newline at end of file