Compare commits

..

8 Commits

Author SHA1 Message Date
kurihada 2ea8e0ef87 CI: trigger social-mcp build
Build and Deploy / build-xhh (push) Failing after 15m4s
Build and Deploy / build-xhs (push) Failing after 15m6s
2026-06-02 10:56:40 +08:00
kurihada d91da9d5fd Optimize workflow with proper tool installation
Build and Deploy / build-xhs (push) Has started running
Build and Deploy / build-xhh (push) Has started running
2026-06-01 17:57:59 +08:00
kurihada 9d3a07ef97 Use direct git clone with Docker gateway
Build and Deploy / build-and-deploy (push) Failing after 11m28s
2026-06-01 17:28:47 +08:00
kurihada 5d3aa03694 CI: test with runner config
Build and Deploy / build-and-deploy (push) Has started running
2026-06-01 17:06:37 +08:00
kurihada d71a80d9b6 Retrigger CI
Build and Deploy / build-and-deploy (push) Has started running
2026-06-01 16:59:15 +08:00
kurihada fab07d4288 Simplify Gitea Actions workflow
Build and Deploy / build-and-deploy (push) Waiting to run
2026-06-01 16:58:04 +08:00
kurihada db3079d078 Trigger Gitea Actions workflow
Build and Deploy / build-and-deploy (push) Waiting to run
2026-06-01 16:47:19 +08:00
kurihada 8a63786064 Add Gitea Actions workflow (migrated from Jenkins)
Build and Deploy / build-and-deploy (push) Has started running
2026-06-01 16:35:25 +08:00
+73
View File
@@ -0,0 +1,73 @@
name: Build and Deploy
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build-xhs:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone http://172.17.0.1:3000/kurihada/social-mcp.git .
git checkout ${{ github.sha }}
- name: Build Docker image
run: docker build --build-arg APP_NAME=xhs-mcp -t social-mcp-xhs:latest .
- name: Deploy
run: |
docker stop mcp-xhs || true
docker rm mcp-xhs || true
mkdir -p /data/mcp-xhs && chown 1001:1001 /data/mcp-xhs
docker run -d \
--name mcp-xhs \
--network nginx \
-p 9527:9527 \
--shm-size=1g \
-v /data/mcp-xhs:/home/appuser/.social-mcp-xhs \
-e NODE_ENV=production \
-e HOST=0.0.0.0 \
-e PORT=9527 \
-e HEADLESS=true \
-e COOKIE_DIR=/home/appuser/.social-mcp-xhs \
-e APP_NAME=xhs-mcp \
-e ALLOW_REMOTE=yes-i-understand-the-risk \
--restart unless-stopped \
social-mcp-xhs:latest
build-xhh:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone http://172.17.0.1:3000/kurihada/social-mcp.git .
git checkout ${{ github.sha }}
- name: Build Docker image
run: docker build --build-arg APP_NAME=xhh-mcp -t social-mcp-xhh:latest .
- name: Deploy
run: |
docker stop mcp-xhh || true
docker rm mcp-xhh || true
mkdir -p /data/mcp-xhh && chown 1001:1001 /data/mcp-xhh
docker run -d \
--name mcp-xhh \
--network nginx \
-p 9528:9528 \
--shm-size=1g \
-v /data/mcp-xhh:/home/appuser/.social-mcp-xhh \
-e NODE_ENV=production \
-e HOST=0.0.0.0 \
-e PORT=9528 \
-e HEADLESS=true \
-e COOKIE_DIR=/home/appuser/.social-mcp-xhh \
-e APP_NAME=xhh-mcp \
-e ALLOW_REMOTE=yes-i-understand-the-risk \
--restart unless-stopped \
social-mcp-xhh:latest