Commit Graph

6 Commits

Author SHA1 Message Date
whale a13f9e40fc fix: resolve git detached HEAD and Go proxy timeout in pipeline
- Use git fetch + checkout master + reset --hard instead of git pull
  to handle detached HEAD state on server
- Add GOPROXY=https://goproxy.cn,direct to Dockerfile so go mod
  download uses Chinese mirror instead of unreachable proxy.golang.org

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 15:04:33 +08:00
whale 50f271b41d fix: use single-line ssh_cmd to avoid JianMu JS parse error
JianMu treats ssh_cmd as a JavaScript expression and cannot handle
newlines. Rewrite the entire command as a single-line string with
semicolon chaining, matching the original project's format.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 14:59:14 +08:00
whale c6debeafe8 refactor: use git pull incremental sync + Docker build in pipeline
Replace git_clone + scp_resource with single ssh_cmd that does
git pull for incremental updates. Keep Docker build and deploy
approach. First run clones the repo, subsequent runs only
download changed files before rebuilding the Docker image.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 14:53:15 +08:00
whale 66b91718b4 refactor: restructure DevOps pipeline to use incremental git pull
Replace scp_resource full-copy approach with single ssh_cmd that does
git pull for incremental sync. First run clones the repo, subsequent
runs only download changed files. Remove redundant publish pipeline.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 14:45:52 +08:00
whale aa4d1228a6 fix: change DevOps pipeline from Docker to direct Go build
Docker Hub is inaccessible from the Alibaba Cloud server.
Switch to: SCP code -> go build -> run binary directly.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-19 17:53:46 +08:00
whale 803a894f05 feat: add DevOps pipeline, CI, milestone and label shortcuts
- Add Dockerfile and .dockerignore for containerized deployment
- Add GitLink DevOps pipelines (.devops/) for auto-build and manual publish
- Add GitHub Actions CI workflow with Go test and vet
- Add golangci-lint configuration
- Update Makefile with lint, test-cover, ci, vet targets
- Add shared test utilities (shortcuts/common/testutil.go)
- Add shortcut development template (shortcuts/_template/)
- Add developer guide (doc/dev-guide.md)
- Add milestone management shortcut (milestone +list/create/view/close/delete)
- Add label management shortcut (label +list/create/delete)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-19 16:58:02 +08:00