Files
shop-client/.woodpecker.yml
T
@kirill.komarov 621414d13c del gitea
2026-06-17 12:31:53 +05:00

35 lines
697 B
YAML

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
environment:
DEPLOY_KEY:
from_secret: deploy_key
commands:
- apk add --no-cache openssh rsync
- mkdir -p /ssh
- echo "$DEPLOY_KEY" > /ssh/deploy_key
- chmod 600 /ssh/deploy_key
- rsync -e "ssh -i /ssh/deploy_key -o StrictHostKeyChecking=no" -avz --delete client/dist/ root@192.168.1.88:/var/www/
depends_on: [lint, build]