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