gorb.app/.woodpecker/build.yml
Radical 257decff6e
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci: make ssh directory in home folder
2025-05-05 02:28:58 +02:00

22 lines
614 B
YAML

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
- mkdir -p ~/.ssh
- 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