fix(ci): move deploy env file to stable host path shared by both runners #958

Merged
chris merged 1 commit from fix/deploy-env-file-path into main 2026-09-29 00:09:04 +02:00
Owner

Summary

  • MEMORIES_DEPLOY_ENV_FILE hard-coded /home/chris/git/memories/deploy/.env (the memories-deploy runner-1 checkout). Since memories-deploy-runner-2 activation every Build * image job on main dies immediately with couldn't find env file — runner-2 workspaces are ephemeral per run and have no such checkout (runs 3269/3279/3295/3297; blocks ALL deploys, not just recent feature merges).
  • Move the env file to /home/chris/git/memories-deploy-runner/.ci-secrets/deploy.env — a stable host path shared by both runners, same mechanism as the existing .ci-locks path. File copied host-side (750 dir / 640 file perms).
  • Update build-deploy.yml, daily-full-tests.yml, and the pipeline docs; record ISSUE-076 in KNOWN_ISSUES.md (high/mitigated).

Verification

  • Host-side: /home/chris/git/memories-deploy-runner/.ci-secrets/deploy.env exists, perms 750/640, verified runner-2 workspace is ephemeral (empty between runs) — hence host path, not workspace copy.
  • Post-merge: the merge commit's Build and Deploy run should go green (workflow file change triggers full rebuild per deployment policy) — this also deploys the pending #948/#949 code.
## Summary - `MEMORIES_DEPLOY_ENV_FILE` hard-coded `/home/chris/git/memories/deploy/.env` (the memories-deploy runner-1 checkout). Since memories-deploy-runner-2 activation every `Build * image` job on main dies immediately with `couldn't find env file` — runner-2 workspaces are ephemeral per run and have no such checkout (runs 3269/3279/3295/3297; blocks ALL deploys, not just recent feature merges). - Move the env file to `/home/chris/git/memories-deploy-runner/.ci-secrets/deploy.env` — a stable host path shared by both runners, same mechanism as the existing `.ci-locks` path. File copied host-side (750 dir / 640 file perms). - Update `build-deploy.yml`, `daily-full-tests.yml`, and the pipeline docs; record ISSUE-076 in KNOWN_ISSUES.md (high/mitigated). ## Verification - Host-side: `/home/chris/git/memories-deploy-runner/.ci-secrets/deploy.env` exists, perms 750/640, verified runner-2 workspace is ephemeral (empty between runs) — hence host path, not workspace copy. - Post-merge: the merge commit's Build and Deploy run should go green (workflow file change triggers full rebuild per deployment policy) — this also deploys the pending #948/#949 code.
fix(ci): move deploy env file to stable host path shared by both runners
All checks were successful
Wiki Sync / Sync wiki from docs (push) Has been skipped
Build and Deploy / Detect changed services and test scopes (push) Successful in 4s
Build and Deploy / Android unit tests and debug APK (push) Has been skipped
Build and Deploy / Smoke API and media worker (push) Has been skipped
Build and Deploy / Smoke web (push) Has been skipped
Build and Deploy / Smoke ML worker (push) Has been skipped
Build and Deploy / Smoke people worker (push) Has been skipped
Build and Deploy / Build postgres image (push) Has been skipped
Build and Deploy / Build plants worker image (push) Has been skipped
Build and Deploy / Build converter worker image (push) Has been skipped
Build and Deploy / Deploy postgres (push) Has been skipped
Build and Deploy / Build API image (push) Has been skipped
Build and Deploy / Build media worker image (push) Has been skipped
Build and Deploy / Build ML worker image (push) Has been skipped
Build and Deploy / Build people worker image (push) Has been skipped
Build and Deploy / Build web image (push) Has been skipped
Build and Deploy / Deploy API (push) Has been skipped
Build and Deploy / Deploy web (push) Has been skipped
Build and Deploy / Deploy media worker (push) Has been skipped
Build and Deploy / Deploy ML worker (push) Has been skipped
Build and Deploy / Deploy plants worker (push) Has been skipped
Build and Deploy / Deploy people worker (push) Has been skipped
Build and Deploy / Deploy converter worker (push) Has been skipped
Build and Deploy / Clean Docker build artifacts (push) Has been skipped
Build and Deploy / Run scoped PR tests (push) Successful in 1m32s
a2dc05eef1
MEMORIES_DEPLOY_ENV_FILE pointed into the memories-deploy runner-1
checkout (/home/chris/git/memories/deploy/.env). Since
memories-deploy-runner-2 activation, every Build * image job on main
failed immediately with 'couldn't find env file' because runner
workspaces are ephemeral per run and runner-2 has no such checkout
(runs 3269/3279/3295/3297).

Move the env file to /home/chris/git/memories-deploy-runner/.ci-secrets/
deploy.env (host path shared by both runners, same mechanism as the
existing .ci-locks path) and update both workflows plus the pipeline
docs. File was copied host-side with 750/640 perms.
chris merged commit bee3220cbc into main 2026-09-29 00:09:04 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chris/memories!958
No description provided.