Skip to content

Publishing Gateway images to ghcr#315

Open
lucaspar wants to merge 3 commits into
masterfrom
lp/docker-registry
Open

Publishing Gateway images to ghcr#315
lucaspar wants to merge 3 commits into
masterfrom
lp/docker-registry

Conversation

@lucaspar

@lucaspar lucaspar commented Jul 7, 2026

Copy link
Copy Markdown
Member
  • Saves build time for QA and production deployments by pulling a pre-built image from GHCR
  • Publishing Gateway images to GHCR
  • Updated versions of GH actions

Note

Medium Risk
Production deploys now depend on ghcr image availability and tag discipline (stable / SDS_GATEWAY_TAG); mis-promotion or failed pushes could block or skew rollouts, though runtime code paths are unchanged.

Overview
Adds CI publishing for the Gateway Django image to ghcr.io/spectrumx/sds-gateway after pre-commit and Django tests pass on pushes to main/master (or manual dispatch). Images get dev-<short-sha> tags plus dev on the default branch; build uses the production Dockerfile with GHA cache and GIT_COMMIT / BUILD_ENVIRONMENT=production build args.

Introduces a manual gateway-promote-stable workflow that retags an existing dev-<sha> image to stable via docker buildx imagetools create (no rebuild).

Production compose stops local build for the app and all Celery services; they now pull ghcr.io/spectrumx/sds-gateway:${SDS_GATEWAY_TAG:-stable} instead of sds-gateway-prod-app.

Across Gateway and SDK workflows, GitHub Actions are bumped (e.g. checkout@v7, setup-uv@v8, cache@v6, pinned upload/download-artifact and automatic-releases versions, pyright-action@v3).

Reviewed by Cursor Bugbot for commit 6e9dac4. Configure here.

@lucaspar lucaspar self-assigned this Jul 7, 2026
@lucaspar lucaspar added ci/cd GH actions, tests, builds, packaging, etc gateway Gateway component dependencies PRs that update dependencies: versioning, security patches, upstream fixes labels Jul 7, 2026
@semanticdiff-com

semanticdiff-com Bot commented Jul 7, 2026

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  gateway/compose.production.yaml  16% smaller
  .github/workflows/sdk-code-quality.yaml  1% smaller
  .github/workflows/gwy-code-quality.yaml  0% smaller
  .github/workflows/gwy-promote-stable.yaml  0% smaller
  .github/workflows/sdk-build-and-publish.yaml  0% smaller
  .github/workflows/sdk-cross-platform-tests.yaml  0% smaller

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6e9dac4. Configure here.

Comment thread .github/workflows/gwy-promote-stable.yaml
Comment thread .github/workflows/gwy-promote-stable.yaml
Comment thread .github/workflows/gwy-code-quality.yaml Outdated
lucaspar added 2 commits July 7, 2026 14:47
The gwy-build-and-push job's 'if' condition omitted the branch
guard for workflow_dispatch events. Due to &&-over-|| precedence,
any workflow_dispatch from any branch could push dev-<sha> images
to ghcr.io. Wrap both push and workflow_dispatch clauses with the
master/main branch check.
@lucaspar lucaspar requested a review from klpoland July 7, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd GH actions, tests, builds, packaging, etc dependencies PRs that update dependencies: versioning, security patches, upstream fixes gateway Gateway component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant