This repo almost works, but is hard to configure. https://github.com/Schickli/agent-for-gitlab has it solved and it works perfectly!