Private Registries

The registry-auth field lets you specify a list of credentials for your private container registries.

Before you can add a registry to your config, you first need to add the password as an environment variable on the secrets page for your project. For the example of a private Gitlab repo, you can add a Gitlab PAT token with repository permissions as an env var named GITLAB_PAT.

If you want to authorize with a private google cloud registry, you can base64 a JSON key file to use as the password. https://cloud.google.com/container-registry/docs/advanced-authentication#json-key

You can then specify this env var as the password-env-var field when configuring registry-auth in reploy.yml

registry-auth:
- registry: registry.gitlab.com
username: monofuel34089
password-env-var: GITLAB_PAT
services:
backend:
port: 5000
runtime: go
image: registry.gitlab.com/monofuel34089/test-project/private-image

If your project requires multiple registries, you can list as many as you need under the registry-auth field.

Field

Description

registry

Domain name for the container registry

username

Username to authorize with the registry

password-env-var

The environment variable to use as the password