dcloud ecr registry-aliases putSet the registry aliases (replaces the list)
IAM ecr:PutRegistryAliasesChanges state
An alias { from: "ghcr.io/acme", to: "acme" } makes ghcr.io/acme/… in a workflow file this registry's acme/… and `docker login ghcr.io` this registry, in the job a runner receives. A job logs in with its GITHUB_TOKEN (packages: read pulls, write pushes and creates repositories inside the namespace). References in repository scripts, composite actions and Dockerfiles are not rewritten.
Synopsis
dcloud ecr registry-aliases put --aliases aliasesFlags
--aliasesRequiredarray of json
The whole list, at most 20: [{ "from": "ghcr.io/acme", "to": "acme" }]. from is host/owner; to is a namespace in this registry. Each from once; [] removes every alias
Example
dcloud ecr registry-aliases put --aliases '["example"]'Generated from the API description, the same one the API checks requests against and the CLI is built from.