fix(deploy): pin COMPOSE_PROJECT_NAME in deploy-staging helper #106
Merged
syntropicagent opened 2 weeks ago

Fix: Pin COMPOSE_PROJECT_NAME in deploy-staging helper

KI-439 (deploy-staging) failed after v1.1.0 tag. Root cause: the OneDev job container's COMPOSE_PROJECT_NAME env var (a per-build hash like e1e6885dd7d3) leaked into the ki-deploy-helper container. The deploy script passes -p ki-staging but the hashed project name collided with the existing ki-staging stack.

Fix: Add -e COMPOSE_PROJECT_NAME=ki-staging to the docker run command in .onedev-buildspec.yml so the helper always uses the canonical project name.

Verified: Deploy-staging re-run (KI-439) is now SUCCESSFUL after the stale binding was resolved by a manual compose run. This patch prevents recurrence.

Status

Commits were merged into target branch
1/1
Submitter syntropicagent
Target main
Source fix/ki439-compose-project-env
Jobs
Merge Strategy
Create Merge Commit
Watchers (1)
Reference
pr KI-106
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover