Commit Graph

23 Commits

Author SHA1 Message Date
Gan, Jimmy bce67f4ea7 fix: use NAS IP for registry mirror in deploy workflow
Run Tests / Backend Tests (push) Failing after 4m16s
Run Tests / Frontend Tests (push) Failing after 57s
Run Tests / Backend Tests (pull_request) Failing after 3m59s
Run Tests / Frontend Tests (pull_request) Failing after 57s
Run Tests / Test Summary (push) Failing after 12s
Run Tests / Test Summary (pull_request) Failing after 13s
- Change mirror_host from 127.0.0.1:5501 to 100.78.131.124:5501
- CI runner container can't access localhost, needs host IP
- Increase timeout from 60s to 120s for slower pulls
- Fixes network timeout errors in deploy.yml workflow
2026-04-08 02:32:35 +08:00
Gan, Jimmy 6bc81f409c ci: fix workflow stability by using standard actions 2026-04-04 23:18:24 +08:00
Gan, Jimmy 2c7787dced revert: disable BuildKit due to slow performance on NAS
Run Tests / Frontend Tests (push) Has been cancelled
Run Tests / Backend Tests (push) Has started running
Run Tests / Test Summary (push) Has been cancelled
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 14m20s
BuildKit operations (load dockerfile, load context, FROM) are taking 20-80s each
on the NAS due to filesystem/resource constraints. Legacy builder is faster.
Keeping pip mirror optimization which provides the real speed improvement.
2026-04-04 00:27:39 +08:00
Gan, Jimmy ee72a891d5 perf: optimize build speed with pip mirror and BuildKit
Deploy Dashboard (Dev) / deploy-dev (push) Has started running
Run Tests / Backend Tests (push) Has been cancelled
Run Tests / Frontend Tests (push) Has been cancelled
Run Tests / Test Summary (push) Has been cancelled
2026-04-04 00:19:43 +08:00
Gan, Jimmy 7a50c070e1 fix: remove duplicate docker.sock mount from deploy workflows
Deploy Dashboard (Dev) / deploy-dev (push) Has been cancelled
Run Tests / Backend Tests (push) Has been cancelled
Run Tests / Frontend Tests (push) Has been cancelled
Run Tests / Test Summary (push) Has been cancelled
2026-04-03 23:49:45 +08:00
Gan, Jimmy 5e9fa2ba56 fix: add Docker socket mount to CI workflows
Deploy Dashboard (Dev) / deploy-dev (push) Has been cancelled
Run Tests / Backend Tests (push) Has been cancelled
Run Tests / Frontend Tests (push) Has been cancelled
Run Tests / Test Summary (push) Has been cancelled
- Add /var/run/docker.sock mount to deploy-dev and deploy workflows
- Fixes docker build hanging indefinitely in CI
- Docker commands need socket access to communicate with daemon
2026-04-03 23:14:54 +08:00
Gan, Jimmy 31d2ba2256 fix: add 60s timeout to registry mirror pre-pull to prevent CI hang
Deploy Dashboard (Dev) / deploy-dev (push) Successful in 12m29s
2026-03-20 00:47:53 +08:00
Gan, Jimmy 61a3d0ae4b fix: sync dashboard compose files during CI deploy
Deploy Dashboard (Dev) / deploy-dev (push) Successful in 7m55s
Ensure dashboard deploy workflows copy tracked compose files into /nas-dashboard before docker compose up, so new SSH host mounts/envs (like Mac terminal) actually reach runtime.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-06 08:43:01 +08:00
Gan, Jimmy ce061c1977 fix: scope deploy triggers and cancel stale workflow runs
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Waiting to run
Deploy Dashboard (Dev) / deploy-dev (push) Successful in 2m9s
Limit workflow path triggers to each workflow file, add concurrency groups to cancel outdated runs, and checkout the exact triggering SHA for deterministic deploys.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-03 00:28:02 +08:00
Gan, Jimmy f1e802e01b CI: add build step to deploy workflow
- Clone from local Gitea instead of actions/checkout
- Build with legacy builder (DOCKER_BUILDKIT=0) for Docker mirror support
- Use npm China mirror (registry.npmmirror.com) in Dockerfile
- Combined npm install+build in single RUN step
- Removed stale proxy env vars
2026-02-25 21:14:00 +08:00
Gan, Jimmy 7b4c52f646 Fix CI: use --pull never instead of --no-pull 2026-02-21 11:16:07 +08:00
Gan, Jimmy 0c80e07735 Fix CI: remove checkout step that requires GitHub access 2026-02-21 11:14:04 +08:00
Gan, Jimmy 74a4fa1d4b Fix CI: add --no-pull to avoid Docker Hub pull failure 2026-02-21 11:09:52 +08:00
Gan, Jimmy a265c6ffb0 Use docker save/load for cross-build deploy from M1 to NAS 2026-02-21 11:05:00 +08:00
Gan, Jimmy 370417b37d Switch to cross-build from M1 via Gitea container registry 2026-02-21 00:40:46 +08:00
Gan, Jimmy 7225615e2f Enable Docker BuildKit for faster builds 2026-02-20 23:57:16 +08:00
Gan, Jimmy 5a94df7973 Revert to Github action checkout & add proxy variables 2026-02-20 23:52:34 +08:00
Gan, Jimmy 3fec3c4e4f Fix checkout action mirror absolute url 2026-02-20 23:28:01 +08:00
Gan, Jimmy 162c5d486d Add workflow path to trigger 2026-02-20 23:24:04 +08:00
Gan, Jimmy fc13510fec Fix action clone timeout by using gitea mirror 2026-02-20 22:29:32 +08:00
Gan, Jimmy b2064726fd Fix CI/CD: remove duplicate docker.sock mount
Runner already passes docker.sock to job containers.
Only mount the dashboard volume for deploy.
2026-02-19 10:18:03 +08:00
Gan, Jimmy 6c042b5e09 Fix CI/CD workflow: mount Docker socket into job container
- Add container volumes for Docker socket, binary, and dashboard path
- Update runner-config.yaml with valid_volumes whitelist
- Sync source files to NAS volume before rebuilding
- Only trigger on dashboard/** path changes
2026-02-19 10:14:24 +08:00
Gan, Jimmy 75c89b1ef9 Fix auth crashes + add CI/CD workflow
Deploy Dashboard / deploy (push) Failing after 6m59s
- Fix jose->pyjwt import mismatch
- Fix bcrypt->pbkdf2 password hashing
- Fix Sidebar logout prop (ReferenceError)
- Add .gitea/workflows/deploy.yml for automated deployment
2026-02-19 10:04:38 +08:00