Optimize workflow with proper tool installation
Build and Deploy / build-xhs (push) Has started running
Build and Deploy / build-xhh (push) Has started running

This commit is contained in:
2026-06-01 17:57:59 +08:00
parent 9d3a07ef97
commit d91da9d5fd
+20 -10
View File
@@ -6,7 +6,7 @@ on:
workflow_dispatch:
jobs:
build-and-deploy:
build-xhs:
runs-on: ubuntu-latest
steps:
@@ -15,21 +15,14 @@ jobs:
git clone http://172.17.0.1:3000/kurihada/social-mcp.git .
git checkout ${{ github.sha }}
- name: Build XHS image
- name: Build Docker image
run: docker build --build-arg APP_NAME=xhs-mcp -t social-mcp-xhs:latest .
- name: Build XHH image
run: docker build --build-arg APP_NAME=xhh-mcp -t social-mcp-xhh:latest .
- name: Deploy
run: |
docker stop mcp-xhs || true
docker rm mcp-xhs || true
docker stop mcp-xhh || true
docker rm mcp-xhh || true
mkdir -p /data/mcp-xhs /data/mcp-xhh
chown 1001:1001 /data/mcp-xhs /data/mcp-xhh
mkdir -p /data/mcp-xhs && chown 1001:1001 /data/mcp-xhs
docker run -d \
--name mcp-xhs \
--network nginx \
@@ -46,6 +39,23 @@ jobs:
--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 \