feat: bake LightGBM boosters + auto-mirror to Selectel (0.6.1) - #18
Merged
Conversation
… (0.6.1)
Ship the two boosters inside the image at /models/*.txt with matching
KZ_SCORING_{HH,CG}_MODEL_PATH env defaults, so no external volume or
init-container is needed. Existing installs can still override the paths or
mount a different volume at /models; nothing existing breaks.
Rotation is now: replace the two .txt in models/, PR, merge — CI produces
a new versioned image with the new boosters baked in.
The workflow now also mirrors every ghcr tag to
cr.selcloud.ru/aggregion/main/kz-scoring-api:<same-tag> via `docker buildx
imagetools create` so PKB's `reg.1cb.kz/library/aggregion/kz-scoring-api`
pull-through alias sees the same digest. Requires two new repo secrets
(SELCLOUD_USERNAME, SELCLOUD_PASSWORD) which are already set.
Version bumped to 0.6.1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
models/hh_..txtandmodels/cg_..txtchecked into git; DockerfileCOPY models/ /models/+ENV KZ_SCORING_{HH,CG}_MODEL_PATHdefault to those paths. Consumers can still override the paths or mount a different volume at/models.cr.selcloud.ru/aggregion/main/kz-scoring-api:<same-tag>viadocker buildx imagetools create. Requires repo secretsSELCLOUD_USERNAMEandSELCLOUD_PASSWORD(already set).0.6.0 → 0.6.1.Rationale: PKB pulls via
reg.1cb.kz/library/aggregion/...alias which proxies our Selectel path. Until now I was manually building-modelsvariant locally and pushing to Selectel, which was error-prone and drifted from ghcr digests. This closes both problems in one workflow.Test plan
ghcr.io/aggregion/kz-scoring-api:v0.6.1and mirrors it to Selectel with the same digest./models/*.txtpresent, env preset.image.tag: v0.6.1, redeploy, hit/single.Rotation from now on
Replace
models/*.txt→ PR → merge → CI ships a new tag with fresh boosters. No hand-built images, no PVC dance.