fix: simplify CI workflows to run directly on runner without nested containers
Run Tests / Backend Tests (push) Has been cancelled
Run Tests / Frontend Tests (push) Has been cancelled
Run Tests / Test Summary (push) Has been cancelled
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 15m27s
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Has started running

- Remove container blocks causing Docker-in-Docker permission issues
- Use actions/checkout@v4 instead of manual git cloning
- Use actions/setup-python@v5 and actions/setup-node@v4 for clean environments
- Remove nsenter workarounds and mount complexity
- Fix volume paths to use /volume1/docker/* directly
- Add /volume1/docker/claude-dev to runner valid_volumes config

This eliminates 20+ commits of permission/namespace hacks by letting
workflows run directly in the runner's environment which already has
Docker access and proper volume mounts configured.
This commit is contained in:
Gan, Jimmy
2026-04-04 16:00:49 +08:00
parent 87af015ef1
commit 55d3348085
3 changed files with 25 additions and 55 deletions
+11 -14
View File
@@ -15,18 +15,17 @@ jobs:
steps:
- name: Checkout repository
run: |
git clone http://gitea:3000/jimmy/nas-tools.git .
git checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Install Python
run: |
apt-get update && apt-get install -y python3 python3-pip python3-venv
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
cd dashboard/backend
python3 -m venv venv
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
@@ -52,14 +51,12 @@ jobs:
steps:
- name: Checkout repository
run: |
git clone http://gitea:3000/jimmy/nas-tools.git .
git checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Install Node.js
run: |
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: |