Commit Graph

10 Commits

Author SHA1 Message Date
lafay
8b1e411c89 ci: support both apt sources formats for mirror switching
All checks were successful
Build Backend / build (push) Successful in 2m5s
Build Backend / build-docker (push) Successful in 2m19s
Update the CI workflow to handle both the legacy sources.list format
and the new ubuntu.sources format when switching to Tsinghua mirrors
2026-04-27 23:28:54 +08:00
lafay
496a0103ea ci: switch to Tsinghua mirror for apt-get in CI workflow
Some checks failed
Build Backend / build-docker (push) Has been cancelled
Build Backend / build (push) Has been cancelled
Use Tsinghua University mirror for faster package downloads in China region
2026-04-27 23:26:57 +08:00
lafay
898c0e6d9c ci(deps): add Go module proxy configuration
Some checks failed
Build Backend / build (push) Failing after 19s
Build Backend / build-docker (push) Has been skipped
Configure GOPROXY to use https://goproxy.cn as primary proxy with direct fallback for Go module fetching in CI builds.
2026-04-25 22:49:56 +08:00
lafay
e5c8fd7860 build(deps): update Go version to 1.26 in CI workflow
All checks were successful
Build Backend / build (push) Successful in 11m20s
Build Backend / build-docker (push) Successful in 1m15s
2026-04-25 21:36:32 +08:00
lafay
b640c9a249 refactor: upgrade to Go 1.26 and modernize code idioms
All checks were successful
Build Backend / build (push) Successful in 3m51s
Build Backend / build-docker (push) Successful in 1m0s
- Replace `interface{}` with `any` type alias across all packages
- Use built-in `min()`/`max()` for parameter clamping
- Use `slices.SortFunc`, `slices.Min`, `slices.Max` for cleaner code
- Use `strings.Cut()` for simpler string parsing in auth middleware
- Use `errors.Is()` for proper error comparison in handlers
- Update dependencies: golang.org/x/image 0.37.0 -> 0.38.0
- Add Wire code generation guidelines to ARCHITECTURE.md
- Disable Go cache in CI build workflow
2026-03-30 04:49:35 +08:00
lafay
ab4ee30690 chore(ci): downgrade actions/upload-artifact and actions/download-artifact to version 3 in build workflow
All checks were successful
Build Backend / build (push) Successful in 19m32s
Build Backend / build-docker (push) Successful in 1m0s
2026-03-23 14:38:39 +08:00
lafay
081e44c4ff chore(ci, dto): update build workflow and enhance post DTOs
Some checks failed
Build Backend / build (push) Failing after 13m9s
Build Backend / build-docker (push) Has been skipped
- Added NODE_NO_WARNINGS environment variable to build and deploy workflows.
- Upgraded actions/upload-artifact and actions/download-artifact to version 4 in the build workflow.
- Introduced ContentEditedAt field in PostResponse and PostDetailResponse DTOs to track content modification timestamps.
- Updated post conversion functions to include ContentEditedAt in responses.
- Ensured ContentEditedAt is set during post updates in the repository.
2026-03-23 14:08:36 +08:00
lafay
d2969a32de ci: update Docker build cache configuration to use registry
All checks were successful
Build Backend / build (push) Successful in 14m14s
Build Backend / build-docker (push) Successful in 1m12s
2026-03-23 03:08:21 +08:00
lafay
fa68f101de ci: 添加Go模块缓存和Docker构建缓存
Some checks failed
Build Backend / build (push) Successful in 12m35s
Build Backend / build-docker (push) Failing after 1m55s
2026-03-21 14:15:27 +08:00
lan
99cc4d9549 ci: add backend gitea build workflow
All checks were successful
Build Backend / build (push) Successful in 4m48s
Build Backend / build-docker (push) Successful in 3m20s
Add a Gitea Actions pipeline to compile the backend server artifact and build/push Docker images for master/dev changes.

Made-with: Cursor
2026-03-17 14:56:27 +08:00