Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lowercase CI_REGISTRY_IMAGE #1085

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Lowercase CI_REGISTRY_IMAGE #1085

merged 1 commit into from
Feb 2, 2024

Conversation

PigeonF
Copy link
Collaborator

@PigeonF PigeonF commented Feb 1, 2024

Container images have to be lowercased. A quick read of https://docs.gitlab.com/ee/ci/variables/predefined_variables.html does not mention that GitLab automatically lowercases CI_REGISTRY_IMAGE, but it does so in practice (see below)

Screenshot 2024-02-01 194921

I don't know if GitLab lowercases only the project path (as in the screenshot), or if it lowercases the CI_SERVER_HOST as well. I assume it does both, so I have placed the toLowerCase on the outside of the string, instead of after the this._variables.

Container image names have to be lowercased to be accepted by a registry. GitLab does this for `CI_REGISTRY_IMAGE` by default.
Copy link
Owner

@firecow firecow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 👍

Copy link
Owner

@firecow firecow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 👍

@firecow firecow merged commit 51542a6 into firecow:master Feb 2, 2024
9 checks passed
@PigeonF PigeonF deleted the patch-1 branch April 25, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants