Skip to content

fix(release): let a fork publish and consume its own images - #129

Open
sergiomaldo wants to merge 1 commit into
LegalQuants:mainfrom
sergiomaldo:fix/fork-friendly-release-namespace
Open

fix(release): let a fork publish and consume its own images#129
sergiomaldo wants to merge 1 commit into
LegalQuants:mainfrom
sergiomaldo:fix/fork-friendly-release-namespace

Conversation

@sergiomaldo

Copy link
Copy Markdown

Two hard-coded references to legalquants make a fork of this repo
unable to build or run itself, which matters most in exactly the
situation forks exist for: carrying a patch while it is in review here.

release.yml pinned NAMESPACE: legalquants. A fork's workflow run
authenticates as the fork owner, then tries to push to a namespace it
has no write access to, and fails at the first push. The workaround is
to edit the workflow, which then shows up as a diff in every PR that
fork sends back. github.repository_owner resolves to legalquants
here, so upstream behaviour is unchanged.

docker-compose.release.yml hard-coded the pull namespace, so someone
following the documented install against a fork silently got upstream's
images — the stack comes up healthy and runs code the operator did not
intend, which is worse than failing. It is now
${DONNA_IMAGE_NAMESPACE:-legalquants}, documented in .env.example,
with the same default.

Verified both directions resolve:

DONNA_IMAGE_NAMESPACE=sergiomaldo  ->  ghcr.io/sergiomaldo/donna-{web,api,gateway}
unset                              ->  ghcr.io/legalquants/donna-{web,api,gateway}

🤖 Generated with Claude Code

Two hard-coded references to `legalquants` make a fork of this repo
unable to build or run itself, which matters most in exactly the
situation forks exist for: carrying a patch while it is in review here.

`release.yml` pinned `NAMESPACE: legalquants`. A fork's workflow run
authenticates as the fork owner, then tries to push to a namespace it
has no write access to, and fails at the first push. The workaround is
to edit the workflow, which then shows up as a diff in every PR that
fork sends back. `github.repository_owner` resolves to `legalquants`
here, so upstream behaviour is unchanged.

`docker-compose.release.yml` hard-coded the pull namespace, so someone
following the documented install against a fork silently got upstream's
images — the stack comes up healthy and runs code the operator did not
intend, which is worse than failing. It is now
`${DONNA_IMAGE_NAMESPACE:-legalquants}`, documented in `.env.example`,
with the same default.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant