From da1a660711020d09a572bcc2fdc2071105d26d96 Mon Sep 17 00:00:00 2001 From: Late Night Defender Date: Fri, 28 Feb 2025 20:36:48 +0700 Subject: [PATCH] update ci configuration --- .woodpecker.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 5c39665..771e405 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,7 +1,13 @@ +when: + - branch: main + event: push + - event: tag + steps: - - name: techtransthai-simple-deploy - image: alpine/git + - name: deploy + image: alpine commands: - - git -C /mnt/caddy-sites/www.techtransthai.org pull + - rm -rf /mnt/caddy-sites/www.techtransthai.org/* + - cp -r * /mnt/caddy-sites/www.techtransthai.org volumes: - /media/core/Data1/Apps/caddy/sites:/mnt/caddy-sites