From f1d1da09457e369e3eab55409975a95d065bd194 Mon Sep 17 00:00:00 2001 From: Brandon Watson Date: Fri, 7 Jan 2022 16:48:45 -0500 Subject: [PATCH] Adding step to remove old packages --- .drone.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.drone.yml b/.drone.yml index 4184354..9b536fc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -69,6 +69,28 @@ steps: exclude: - pull_request + - name: remove old package + image: appleboy/drone-ssh + environment: + SSH_USER: + from_secret: ssh_user + settings: + host: homebridge.me + envs: + - SSH_USER + username: + from_secret: ssh_user + key: + from_secret: ssh_key + port: 22 + script: + - rm -r /home/$SSH_USER/.npm-global/lib/node_modules/@watsonb8/homebridge-harmony-control + when: + event: + - tag + exclude: + - pull_request + - name: deploy image: appleboy/drone-ssh settings: