From dad0d157efcbe031978ae6ece648ca73d35dc02d Mon Sep 17 00:00:00 2001 From: simonpetit Date: Wed, 3 Dec 2025 17:56:38 +0000 Subject: [PATCH] adding a step in ci to remove old html files --- .drone.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.drone.yml b/.drone.yml index 64e6b89..a9b3def 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,20 @@ steps: command: - publish +- name: Remove old + image: appleboy/drone-ssh + settings: + host: + - example1.com + - example2.com + username: ubuntu + password: + from_secret: ssh_password + port: 22 + command_timeout: 2m + script: + - rm /var/www/html/blog/*.html + - name: Deploy image: appleboy/drone-scp settings: