Compare commits

..

2 Commits

Author SHA1 Message Date
@kirill.komarov aed7fa1ce9 add woodpecker 2026-06-16 22:09:18 +05:00
@kirill.komarov 2f9f12d154 add woodpecker 2026-06-16 22:09:14 +05:00
2 changed files with 0 additions and 40 deletions
-10
View File
@@ -1,10 +0,0 @@
name: Deploy
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy
run: bash /opt/deploy-shop.sh server main
-30
View File
@@ -1,30 +0,0 @@
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]