Registries
Container registry credentials can be added in the repository settings. This allows to authenticate against the respective registry and pull private images while also avoiding rate-limiting.
Registry hostnames are matched to each image in the YAML config. If the hostname matches, the stored registry credentials are used to authenticate and pull the image.
Important
Credentials are used by the agent and are never exposed to build containers.
Info
The implicit default when not specifying a registry is always docker.io.
Examples:
- Image 
quay.io/foo/barhas hostnamegcr.io - Image 
foo/barhas hostnamedocker.io - Image 
qux.com:8000/foo/barhas hostnamequx.com:8000 
Hostname matching logic:
- Hostname 
quay.iomatchesimage: quay.io/foo/bar - Hostname 
docker.iomatchesimage: golang - Hostname 
docker.iomatchesimage: library/golang - Hostname 
docker.iomatchesimage: bradrydzewski/golang - Hostname 
docker.iomatchesimage: bradrydzewski/golang:latest