A container registry is a storage to hold docker images which can be used in the private and public docker runners. See GitLab Container Registry for details.
Private images should no use the public runner for security reasons.
The public docker runner pulls images only if they don’t already exist. So the job starts faster, if the image has been stored.
The Hugo image is used to create this documentation. See Hugo example for more detailed imformation.
pages: tags: - public-docker image: jojomi/hugo script: - hugo version - hugo artifacts: paths: - public only: - master
The public docker runner pulls images only if they don’t already exist (if-not-present pull policy). If the runner finds a local version of the image, it uses it even if the image could not be pulled because of missing credentials.
On public-docker, the following sequence would be possible: