From 62db9b433cf459eafac75a3f6c6719bd68b41ca5 Mon Sep 17 00:00:00 2001 From: Late Night Defender Date: Fri, 28 Feb 2025 20:53:33 +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 b47266d..8d964a4 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/blachp.techtransthai.org pull + - rm -rf /mnt/caddy-sites/blachp.techtransthai.org/* + - cp -r * /mnt/caddy-sites/blachp.techtransthai.org volumes: - /media/core/Data1/Apps/caddy/sites:/mnt/caddy-sites \ No newline at end of file