Environment Variables in Repository Settings
Add an Environment Variable in Repository Settings
.gitpod.yml
.gitpod.yml
for more details.
env
property in your .gitpod.yml
file to set non-secret, static environment variables. Learn more.
Repository variables defined in the repository settings will take precedence and will override variables defined in the .gitpod.yml
’s env
property. See the Environment Variable Prioritization Stack for more.
GITPOD_IMAGE_AUTH
to configure access to private Docker registries (cmp. section “Use a private Docker image”).
By default, the environment variable GITPOD_IMAGE_AUTH
is not mounted into workspaces for security reasons. If this is wanted nonetheless (e.g. to enable developers to seamlessly use docker pull
/ docker push
, or to enable the gp validate
workflow), the repository configuration has a toggle to enable that.
When it’s enabled, and GITPOD_IMAGE_AUTH
is set - either on the repository or organization level -, dockerd
will be configured with these credentials on workspace start. Also, GITPOD_IMAGE_AUTH
is visible inside the workspace.