Use private registry in GitLab CI job

I did that using the first script I provided. But that used HTTP.