From 65922bb9a076f70c8f4d85304784ad30898935ed Mon Sep 17 00:00:00 2001 From: latenightdef Date: Fri, 28 Feb 2025 13:51:17 +0000 Subject: [PATCH] update ci configuration --- .woodpecker.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 8e917a5..7d781f9 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,8 +1,15 @@ +when: + - branch: main + event: push + - event: tag + steps: - - name: techtransthai-simple-deploy - image: docker.io/library/node:alpine + - name: deploy + image: node commands: - npm i - - node_modules/.bin/vite build --emptyOutDir --outDir /mnt/caddy-sites/fsob.techtransthai.org/ + - npm run build + - rm -rf /mnt/caddy-sites/fsob.techtransthai.org/* + - cp -r dist/* /mnt/caddy-sites/fsob.techtransthai.org/ volumes: - /media/core/Data1/Apps/caddy/sites:/mnt/caddy-sites \ No newline at end of file