-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(manager/gitlabci): strip Gitlab Dependecy Proxy variable from depName #14734
Conversation
Remove image prefix variable from images pulled through the Dependency Proxy.
c965d31
to
e23f362
Compare
@dsch Overall your change looks good. I had a go at resolving the conflicts with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs deconflicting
@rarkins thank you for marking the PR as draft.
|
Head branch was pushed to by a user without write access
Your latest commit is unverified 😕 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise LGTM
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
By using the full name for replacement, the prefix gets dropped in the PR. Tested with https://gitlab.com/dsch1/renovate-gitlab-dependency-proxy |
@viceice This may be hard to fix due to the way autoReplace works, unless we manually specify the replace template during extract. Shall we revert to how it was? |
yes, let's revert. sorry |
@viceice I implemented a prefixed version of autoReplaceTemplateString. I'm not sure if this goes in the right direction, because it still does not work as expected. |
After deleting the branch from my previous test it works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't see failing tests yet 🙃
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
🎉 This PR is included in version 32.31.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@viceice thank you for supporting me on my endeavor to create my first TypeScript PR. |
@dsch most of all, thanks to you! |
Changes
Remove image prefix variable from images pulled through the Dependency Proxy.
Context
The predefined variables
CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX
andCI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX
can be used to pull images from Docker Hub through Gitlab Dependency Proxy. Since the part after the prefix is a resolvable image name, only this part use used asdepName
. Also thereplaceString
does not contain the variable, since it's not relevant for replacement.Closes #9958
Note: This change does not solve the two additionally mentioned use-cases in #9958: CI_REGISTRY and Dependency Proxy in Dockerfiles.
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: