Skip to content

[build-images] Authenticate in both org default registries #216

Description

@alambike

Motivation

We have 2 inputs for the default org registries:

self._snapshots_registry = self.vars.get('snapshots_registry')
self._releases_registry = self.vars.get('releases_registry')

But we only authenticate in the corresponding type registry, depending on whether we are building snapshots or releases:

default_registry = getattr(self, f"{self.type}_registry")
default_registry_creds = getattr(self, f"{self.type}_registry_creds")
if self.login_required:
self.login(
self.auth_strategy,
default_registry,
default_registry_creds,

We want to log in both registries to avoid issues building images that depends on other base images (Dockerfile FROM XXX) that can be located in any of the org default registries.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions