Open Dextererials opened 1 year ago
I have just been able to reproduce this. It relates to the project name (or groups) including uppercase letters. While the gitlab repository path can contain uppercase letters (eg. git@gitlab.com/group/Foo-Service
), the gitlab registry can not (the equivalent created by gitlab will be registry.gitlab.com/group/foo-service
). https://github.com/kaibloecker/semantic-release-docker-gitlab-ci/blob/main/src/auth.js#L34 does not take this into account (PROJECT_PATH
needs to be .toLowerCase()
'ed).
@Dextererials as a manual workaround: You have to ensure that the repository path is lower case. You sadly can not just change the path, since gitlab considers the underlying registry path as already taken. Therefore you have the change the repository path twice: Eg. first to gitlab.com/group/foo-service-2
and then to gitlab.com/group/foo-service
@kaibloecker would you accept a patch that lower cases PROJECT_PATH
?
I am getting an error message
undefined TypeError: Cannot read properties of undefined (reading 'split')
when I try to add the pluginsemantic-release-docker-gitlab-ci
. The error is getting thrown fromsemantic-release-docker-gitlab-ci/src/verify.js:35:1
Not sure what I am doing wrong. Here is my config files: