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