add woodpecker
Deploy / deploy (push) Successful in 2s

This commit is contained in:
@kirill.komarov
2026-06-16 20:02:06 +05:00
parent 6508091193
commit f2bba9b5e0
+30
View File
@@ -0,0 +1,30 @@
when:
branch: main
event: push
steps:
install:
image: node:20
commands:
- npm ci
lint:
image: node:20
commands:
- npm run lint
depends_on: [install]
build:
image: node:20
commands:
- npm run build
depends_on: [install]
deploy:
image: alpine:latest
commands:
- apk add --no-cache openssh rsync
- rsync -e "ssh -i /ssh/deploy_key" -avz --delete dist/ root@192.168.1.88:/srv/shop/
- ssh -i /ssh/deploy_key root@192.168.1.88 'systemctl restart shop-server'
secrets: [deploy_key]
depends_on: [lint, build]