I suggest you use https tokens. Use git’s insteadOf
feature to auto-convert all ssh and non-cred urls to the correct credded url. To do this, have your before_script
section do something like
git config --global url."https://$JULIASYSTEMUSER:$JULIAREGTOKEN@gitlab.mycompany.com/".insteadOf "git@gitlab.mycompany.com:"
git config --global url."https://$JULIASYSTEMUSER:$JULIAREGTOKEN@gitlab.mycompany.com/".insteadOf "https://gitlab.mycompany.com/" --add
This works nice because it doesn’t matter how the url’s are listed in the registry.