From 300849712b328cebfd503dd1402776160b4440ae Mon Sep 17 00:00:00 2001 From: Radical Date: Mon, 5 May 2025 02:27:11 +0200 Subject: [PATCH] ci: add ci to automatically publish new versions --- .woodpecker/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .woodpecker/build.yml diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml new file mode 100644 index 0000000..88c453a --- /dev/null +++ b/.woodpecker/build.yml @@ -0,0 +1,21 @@ +steps: + - name: build + image: node:alpine + commands: + - npm install -g pnpm + - pnpm install + - pnpm build + + - name: publish + image: debian:12 + commands: + - apt update -y && apt install -y rsync openssh-client + - echo "$KEY" > ~/.ssh/id_ed25519 + - rsync --archive --verbose --compress --hard-links --delete-during --partial --progress ./.output/ root@gorb.app:/var/www/gorb.app + - ssh root@gorb.app systemctl restart gorb.app.service + environment: + KEY: + from_secret: ssh_key + when: + - event: push + branch: main