Skip to content

fix: show all registry accounts in deployment when provider is not auto-detected#1189

Closed
litlmike wants to merge 1 commit intomoghtech:mainfrom
litlmike:fix-issue-1058
Closed

fix: show all registry accounts in deployment when provider is not auto-detected#1189
litlmike wants to merge 1 commit intomoghtech:mainfrom
litlmike:fix-issue-1058

Conversation

@litlmike
Copy link
Copy Markdown

@litlmike litlmike commented Feb 8, 2026

Summary

Fixes #1058 — non-docker.io registry accounts (e.g., ghcr.io, quay.io) were not shown in the Deployment Image account selection.

Problem

When configuring a deployment's image registry account, the account selector auto-detects the registry provider from the image name. If the provider couldn't be determined (no image set yet, or image without a domain prefix), it defaulted to docker.io, filtering out all non-docker.io accounts.

This meant users who only configured registries like ghcr.io saw an empty account list.

Fix

  • Make provider optional in AccountSelector and AccountSelectorConfig
  • When provider is undefined, show accounts from all registries instead of only docker.io
  • Remove the ?? "docker.io" fallback in deployment config

Provider auto-detection still works when possible:

  • Image type: extracted from image name (e.g., ghcr.io/org/repoghcr.io)
  • Build type: taken from the build's first image registry domain

Files Changed

  • frontend/src/components/config/util.tsx — make provider optional, skip domain filter when unset
  • frontend/src/components/resources/deployment/config/index.tsx — pass provider as-is without docker.io fallback

… determined

When a deployment's image doesn't contain a registry domain prefix (or no
image is set yet), the account selector previously defaulted to filtering
by 'docker.io', hiding accounts from other registries like ghcr.io or
quay.io.

Now when the provider cannot be auto-detected from the image name or
build configuration, all available registry accounts are shown instead
of only docker.io accounts.

The provider is still auto-detected when possible:
- Image type: extracted from image name (e.g., ghcr.io/org/repo)
- Build type: taken from the build's first image registry domain

Closes moghtech#1058
@mbecker20 mbecker20 closed this Feb 26, 2026
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.

[Bug] Unable to use provider other than docker.io in deployment

2 participants