How to authenticate ivy:publish in ivysettings?


I am attempting to use gitlabs CI/CD with Ant+Ivy using docker runners. I can successfully publish my jars using curl to the generic package registry. What I am unable to figure out is how to authenticate to the gitlab server via ivys settings. The examples given by Gitlab for Maven should work if I could figure out where to add them. Has anyone successfully setup a package registry using Ant+Ivy?

Thanks in advance