Commit Graph

27 Commits

Author SHA1 Message Date
truewhile 44ca451cd4 优化
优化
2026-08-24 17:40:43 +08:00
truewhile 11685101eb Simplify version-and-publish job conditions
Removed conditional execution for the version-and-publish job.
2026-08-24 15:05:04 +08:00
truewhile 3641d084aa Remove GitHub Release creation step from workflow
Removed the optional step for creating a GitHub Release in the workflow.
2026-08-24 15:04:04 +08:00
truewhile deec4ead6d Update Auto-docker-publish workflow triggers
Removed workflow_run trigger and added push and pull_request triggers for main branch.
2026-08-24 08:54:00 +08:00
truewhile e657a5aa84 Change Docker image name in workflow 2026-08-24 08:42:19 +08:00
truewhile 6872e9f646 Add CI Success job to workflow
Signed-off-by: truewhile <62226914+truewhile@users.noreply.github.com>
2026-08-20 17:56:03 +08:00
truewhile 91cee6cb37 添加自动构建工作流
Signed-off-by: truewhile <62226914+truewhile@users.noreply.github.com>
2026-08-20 17:53:52 +08:00
truewhile 3edeb94c93 Update Docker image metadata extraction to use repo owner
Signed-off-by: truewhile <62226914+truewhile@users.noreply.github.com>
2026-08-18 09:48:58 +08:00
truewhile 8af0c676b5 Update Docker image repository in workflow
Signed-off-by: truewhile <62226914+truewhile@users.noreply.github.com>
2026-08-18 09:02:13 +08:00
ShukeBta 78de029ef3 fix: embed release version in system update status 2026-07-03 01:55:30 +08:00
ShukeBta 1b56469beb chore clean repository deployment files 2026-07-02 01:56:40 +08:00
ShukeBta 6bb06fac14 ci: disable automatic release on tag push 2026-06-28 16:44:37 +08:00
ShukeBta 284ec873bc Use compose deployment smoke in CI 2026-06-16 01:09:36 +08:00
ShukeBta 852fe6ead0 Stabilize smoke startup port 2026-06-16 00:58:07 +08:00
Shuke 93afa1aebb Delete .github/workflows/codeql.yml
Signed-off-by: Shuke <272197458+ShukeBta@users.noreply.github.com>
2026-06-15 01:05:44 +08:00
ShukeBta a177dc61dd fix emby clients and cloud playback controls 2026-06-13 12:08:57 +08:00
ShukeBta 93c9cb7dfb ci: automate release publishing 2026-05-30 13:09:51 +08:00
ShukeBta 773343d744 docs: add ghcr pull troubleshooting 2026-05-29 01:44:38 +08:00
ShukeBta 895444b90f ci: restore ghcr docker image publishing 2026-05-29 01:21:17 +08:00
ShukeBta b0387ed40e ci: publish docker image to docker hub 2026-05-29 01:13:47 +08:00
ShukeBta 32d7fb0f45 ci: publish artifacts only on version tags 2026-05-29 00:33:39 +08:00
ShukeBta 1051fb1825 chore: add favicon and harden release workflow 2026-05-28 23:40:54 +08:00
ShukeBta 05d49ca470 Add advanced discovery subscriptions 2026-05-28 22:21:48 +08:00
ShukeBta a6a1226ede Add release package publishing workflow 2026-05-28 21:36:54 +08:00
ShukeBta 2dfccfd779 Publish Docker latest package from CI 2026-05-28 17:48:34 +08:00
Kiro 77e3fdd1f6 test: add E2E smoke test script + CI gate
After deploying the binary against a fresh data dir and exercising every
major REST endpoint by hand, codify the verification as a re-runnable
script.

scripts/smoke-test.sh:
  - Spins up bin/mediastation-go against a tempdir.
  - Generates 3 sample clips (movie, tv, anime) + an external SRT.
  - Walks 26 assertions: health → auth → libraries → scan → ffprobe →
    season parser → search → range stream → HLS playlist → external
    subtitle → history → favourites → playlists → RBAC (alice 403) →
    NFO export → recycle bin → SPA fallback → graceful shutdown.
  - Tears the server down via SIGTERM and reports pass/fail counts.
  - Exits non-zero on any failure so CI can use it as a deployment gate.

Local verification on this branch: PASS=26  FAIL=0.

Wiring:
  - Makefile: new 'smoke' target, depends on 'build'.
  - .github/workflows/ci.yml: third job 'smoke' that depends on backend
    + frontend, installs ffmpeg, builds both halves, then runs the
    script. The CI pipeline now blocks merges that break end-to-end
    deployability.
2026-05-14 16:36:34 +00:00
Kiro d5cf5fb4b2 feat: bootstrap MediaStationGo (Go + React rewrite of MediaStation)
Adopt the cropflre/nowen-video tech stack and rebuild the project from
scratch:

  - Backend: Go 1.25 + Gin + GORM + SQLite (WAL) + JWT + WebSocket hub.
    Layered packages config / database / model / repository / service /
    middleware / handler. Default admin (admin/admin123) seeded on first
    run; /api routes for auth, libraries, media, stream and admin
    panels. WebSocket scan-progress events at /api/ws.
  - Frontend: React 18 + Vite 5 + Tailwind 3.4 + Zustand + axios +
    react-router 6 + lucide-react + framer-motion + hls.js. Pages for
    Login / Home / Library / Search / MediaDetail / Player / Admin
    (Library, Users, Settings tabs).
  - Distribution: multi-arch Dockerfile (frontend -> backend -> Alpine
    runtime), docker-compose.yml, GitHub Actions for CI and GHCR
    publish, Makefile, env-prefixed config (MEDIASTATION_*).
  - Docs: README, CONTRIBUTING, .env.example, config.example.yaml.

Backend builds, vets and tests pass. Frontend builds via tsc -b && vite
build (250 kB JS / 16 kB CSS, gzipped 84 / 4 kB).
2026-05-14 15:26:29 +00:00