ci: add ci to automatically publish new versions
Some checks failed
ci/woodpecker/push/build Pipeline failed
Some checks failed
ci/woodpecker/push/build Pipeline failed
This commit is contained in:
parent
044b714295
commit
3b7860715f
1 changed files with 19 additions and 0 deletions
19
.woodpecker/build.yml
Normal file
19
.woodpecker/build.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
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
|
||||
- ssh-agent bash -c "ssh-add <(echo '$KEY' | base64 -d) && 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:
|
||||
- branch: main
|
||||
event: push
|
Loading…
Add table
Add a link
Reference in a new issue