From fe2121904e813846501ac435efe324925ff88a84 Mon Sep 17 00:00:00 2001 From: latenightdef Date: Fri, 28 Feb 2025 13:46:42 +0000 Subject: [PATCH] clean up old site before new deployment --- .woodpecker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index a05113b..cd09c53 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,11 +4,12 @@ when: - event: tag steps: - - name: techtransthai-simple-deploy + - name: deploy image: node commands: - npm i - npm run build + - rm -rf /mnt/caddy-sites/tsib.techtransthai.org/* - cp -r public/* /mnt/caddy-sites/tsib.techtransthai.org/ volumes: - /media/core/Data1/Apps/caddy/sites:/mnt/caddy-sites \ No newline at end of file