ci: add GitLab build and k3s deploy pipeline
This commit is contained in:
1 parent
c15fc81178
commit
057e5c81bd
8 files changed
+140
-11
No files matched your search
@@ -7,15 +7,16 @@
|
||||
## Working Rules
|
||||
- Keep the calculation domain independent from HTTP, VK, and Kubernetes.
|
||||
- Keep VK tokens and group IDs out of the repository; use environment variables or Kubernetes Secrets.
|
||||
- Do not apply `deploy/k8s/` until the bot commands, report wording, registry image name, service exposure, and Secret handoff are explicitly confirmed.
|
||||
- Production manifests are already applied in namespace `belki`; CI deploys them from `main` using the namespace-scoped RBAC in [`deploy/k8s/rbac.yaml`](./deploy/k8s/rbac.yaml).
|
||||
- Prefer `docker:dind` for CI unless the target runner is explicitly pinned and known to expose `/var/run/docker.sock`.
|
||||
|
||||
## Validation
|
||||
- For CI-only changes, prefer a targeted YAML parse and a diff review.
|
||||
- For image/runtime changes, check the `Dockerfile`, Python entrypoint, static asset serving, and CI job together.
|
||||
- For k3s changes, validate YAML and current cluster inventory first; deployment is currently deferred.
|
||||
- For k3s changes, validate YAML and current cluster inventory first; keep `KUBE_CONFIG_B64` masked/protected in GitLab.
|
||||
- Do not add unnecessary local build artifacts or temporary files to the repository.
|
||||
|
||||
## Notes
|
||||
- `docker:dind` requires a privileged Docker executor and `DOCKER_HOST=tcp://docker:2375` with `DOCKER_TLS_CERTDIR=""`.
|
||||
- The `dind` daemon can take time to initialize; this repo waits for `docker info` before building.
|
||||
- Never commit `.env` or `.gitlab.variables.env`; the latter contains the GitLab Variable handoff and a namespace-scoped kubeconfig.
|
||||
Reference in new issue
Block a user