From a97be6535cd23847aaa43657d54f1ac1aca6cd88 Mon Sep 17 00:00:00 2001 From: latenightdef Date: Fri, 28 Feb 2025 16:05:50 +0000 Subject: [PATCH] Update .woodpecker.yml --- .woodpecker.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index a25b5db..d5f1aeb 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,9 +1,15 @@ +when: + - branch: main + event: push + - event: tag + steps: - - name: techtransthai-simple-deploy + - name: deploy image: alpine commands: - - apk add git go - - apk add --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community --no-cache hugo - - hugo --destination /mnt/caddy-sites/thailinux.techtransthai.org/public + - apk add git go hugo + - hugo + - rm -rf /mnt/caddy-sites/thailinux.techtransthai.org/* + - cp -r public/* /mnt/caddy-sites/thailinux.techtransthai.org volumes: - - /media/sasha/Data1/Apps/caddy/sites:/mnt/caddy-sites \ No newline at end of file + - /media/core/Data1/Apps/caddy/sites:/mnt/caddy-sites \ No newline at end of file