Optimize workflow with proper tool installation
This commit is contained in:
+20
-10
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user