From d91da9d5fdafd655f74ea63817b86c77961d120d Mon Sep 17 00:00:00 2001 From: kurihada Date: Mon, 1 Jun 2026 17:57:59 +0800 Subject: [PATCH] Optimize workflow with proper tool installation --- .gitea/workflows/deploy.yml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 30b3544..82621f3 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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 \