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/bar
has hostnamegcr.io
- Image
foo/bar
has hostnamedocker.io
- Image
qux.com:8000/foo/bar
has hostnamequx.com:8000
Hostname matching logic:
- Hostname
quay.io
matchesimage: quay.io/foo/bar
- Hostname
docker.io
matchesimage: golang
- Hostname
docker.io
matchesimage: library/golang
- Hostname
docker.io
matchesimage: bradrydzewski/golang
- Hostname
docker.io
matchesimage: bradrydzewski/golang:latest