b7e2949729138b74f057defb24cc1b26bca4eef4
aisp-ci-demo
Service mẫu để thử luồng Gitea CI của AISP: kết nối repository → scan Dockerfile → build → Release → deploy.
GET /trả JSON gồmversion,message(từ biếnAPP_MESSAGE) và hostname của Pod.GET /healthzdùng cho readiness check.- Lắng nghe cổng
8080, chạy non-root (UID 10001). - Viết bằng Go, image cuối là
scratchchỉ vài MB để push lên Harbor nhanh.
Thử thay đổi: sửa hằng version trong main.go, commit và push, rồi build lại trên console để thấy
phiên bản mới sau khi deploy.
Chạy local: docker build -t aisp-ci-demo . && docker run --rm -p 8080:8080 aisp-ci-demo
Description
Languages
Go
67.3%
Dockerfile
32.7%