ci: add manual Huawei SWR publish job

This commit is contained in:
2026-06-16 10:41:55 +08:00
parent 626b8928f4
commit 372aba4d5e
3 changed files with 55 additions and 0 deletions

View File

@@ -81,6 +81,16 @@ The default `docker-compose.yml` expects `.env.production` and an external Docke
For Coolify deployments, use `docker-compose.coolify.yml`. It expects runtime environment variables from Coolify and an external Docker network named `coolify`.
## GitLab Manual Publish
Run the GitLab pipeline manually and set `DOCKER_LOGIN_COMMAND` to the full Huawei Cloud SWR login command.
Optional variables:
- `IMAGE_REPO`: defaults to `swr.cn-north-1.myhuaweicloud.com/sino-bridge/sinocode-analytics`
- `IMAGE_TAG`: defaults to the Git commit short SHA
- `PUSH_LATEST`: defaults to `true`
## Operational Notes
- API query parameters are validated at the route layer. Invalid integers or reversed date ranges return HTTP 400.