Abstract
Optional
usages: DockerCredentialUsage[]Internal
Determines if this credential is relevant to the input usage.
Abstract
_renderAbstract
grantGrant read-only access to the registry credentials. This grants read access to any secrets, and pull access to any repositories.
Static
customCreates a DockerCredential for a registry, based on its domain name (e.g., 'www.example.com').
Optional
opts: ExternalDockerCredentialOptionsStatic
dockerCreates a DockerCredential for DockerHub.
Convenience method for customRegistry('https://index.docker.io/v1/', opts)
.
Optional
opts: ExternalDockerCredentialOptionsStatic
ecrCreates a DockerCredential for one or more ECR repositories.
NOTE - All ECR repositories in the same account and region share a domain name (e.g., 0123456789012.dkr.ecr.eu-west-1.amazonaws.com), and can only have one associated set of credentials (and DockerCredential). Attempting to associate one set of credentials with one ECR repo and another with another ECR repo in the same account and region will result in failures when using these credentials in the pipeline.
Optional
opts: EcrDockerCredentialOptions
Represents credentials used to access a Docker registry.