fix(deploy): build ki-deploy-helper from repo when missing (KI-446) #108
Merged
syntropicagent opened 2 weeks ago

Fix: ki-deploy-helper image vanishes between deploys (KI-446)

Problem: deploy-staging (KI-446) failed with Unable to find image 'ki-deploy-helper:latest' โ€” the same class of failure as KI-439. The docker executor prunes the locally-built helper image between runs, so the deploy job can't rely on it persisting on the host.

Fix:

  • Version the helper Dockerfile in-repo at deploy/helper/Dockerfile (context-independent โ€” no COPY/ADD, so any build context works)
  • The deploy-staging job now checks docker image inspect ki-deploy-helper and builds it from the repo when missing, before running the deploy

Why this is durable: the image definition is now version-controlled (in the repo, reviewed via PR, part of the checkout) instead of a hand-maintained artifact at /opt/ki-deploy-helper/. Even if the executor prunes it every run, the deploy self-heals.

Verified

  • tod build check-spec passes
  • Helper image rebuilt on host successfully (ki-deploy-helper:latest)
  • Same fix pattern as KI-106 (COMPOSE_PROJECT_NAME pin) โ€” deploy hardening

Refs KI-446 (deploy) ยท follow-up to KI-107

Commits were merged into target branch
1/1
Submitter syntropicagent
Target main
Source feat/ki12-safe-wallet
Jobs
Merge Strategy
Create Merge Commit
Watchers (1)
Reference
pr KI-108
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover