Compare commits

..

18 Commits

Author SHA1 Message Date
admin 3180d799fa fix: remove double build, use rsync
ci/woodpecker/push/woodpecker Pipeline was successful
2026-06-17 10:17:43 +00:00
@kirill.komarov 3ab549f5b7 test
ci/woodpecker/push/woodpecker Pipeline was successful
2026-06-17 15:10:29 +05:00
@kirill.komarov 6f922f16a1 Merge branch 'main' of https://gitea.mpak-8501.ru/admin/min-chat
ci/woodpecker/push/woodpecker Pipeline was successful
2026-06-17 15:05:24 +05:00
@kirill.komarov c585abab8e test 2026-06-17 15:05:05 +05:00
admin 7b2e46f1c5 deploy pipeline final 2026-06-17 09:50:38 +00:00
@kirill.komarov 8de49b5391 test
ci/woodpecker/push/woodpecker Pipeline failed
2026-06-17 14:42:08 +05:00
@kirill.komarov 23a06ed008 test
ci/woodpecker/push/woodpecker Pipeline failed
2026-06-17 14:40:41 +05:00
@kirill.komarov 6d715abe4d test
ci/woodpecker/push/woodpecker Pipeline failed
2026-06-17 14:38:51 +05:00
@kirill.komarov b73fcce708 Merge branch 'production'
ci/woodpecker/push/woodpecker Pipeline failed
2026-06-17 14:35:51 +05:00
@kirill.komarov 48151eaf20 test 2026-06-17 14:35:05 +05:00
@kirill.komarov 73322831e4 test 2026-06-16 20:24:11 +05:00
@kirill.komarov bd974ea202 test 2026-06-12 13:00:50 +05:00
@kirill.komarov 9b03a669c8 test 2026-06-12 12:58:38 +05:00
@kirill.komarov c813b20215 test 2026-06-12 12:54:01 +05:00
@kirill.komarov b20e6e2ef0 test 2026-06-12 12:43:37 +05:00
@kirill.komarov 0565767f3c test 2026-06-12 12:42:23 +05:00
@kirill.komarov 6c2a8be507 Merge branch 'prodaction' of https://gitea.mpak-8501.ru/admin/min-chat into prodaction 2026-06-12 12:39:51 +05:00
@kirill.komarov d8ce49ba28 test 2026-06-12 12:39:46 +05:00
2 changed files with 18 additions and 12 deletions
+17 -11
View File
@@ -3,22 +3,28 @@ when:
event: [push, manual] event: [push, manual]
steps: steps:
install-client: install:
image: node:20-alpine image: node:20
commands: commands:
- cd client && npm ci - cd client && npm install
build-client: build:
image: node:20-alpine image: node:20
commands: commands:
- cd client && npm run build - cd client && npm run build
depends_on: [install-client] depends_on: [install]
deploy: deploy:
image: alpine:latest image: alpine:latest
volumes: environment:
- /root/.ssh:/root/.ssh:ro DEPLOY_KEY:
from_secret: deploy_key
commands: commands:
- apk add --no-cache openssh - apk add --no-cache openssh rsync
- ssh -o StrictHostKeyChecking=no -i /root/.ssh/deploy_chat root@192.168.1.80 'cd /opt/min-chat && git pull origin main && cd server && npm install --omit=dev && cd .. && cd client && npm ci && npm run build && cd .. && cp -r client/dist/* /var/www/html/ 2>/dev/null || true && systemctl restart chat-app' - mkdir -p /ssh
depends_on: [build-client] - echo "$DEPLOY_KEY" > /ssh/deploy_key
- chmod 600 /ssh/deploy_key
- ssh -i /ssh/deploy_key -o StrictHostKeyChecking=no root@192.168.1.80 'cd /opt/min-chat && git pull origin main && cd server && npm install --omit=dev && cd ..'
- rsync -e "ssh -i /ssh/deploy_key -o StrictHostKeyChecking=no" -avz --delete client/dist/ root@192.168.1.80:/var/www/html/
- ssh -i /ssh/deploy_key -o StrictHostKeyChecking=no root@192.168.1.80 'systemctl restart chat-app'
depends_on: [build]
+1 -1
View File
@@ -1,4 +1,4 @@
[ [
{ "login": "Danil", "password": "456" }, { "login": "Danil", "password": "456" },
{ "login": "charlie", "password": "789" } { "login": "Kirill", "password": "123" }
] ]