I have a CI pipeline to build my android app and run instrumented test using gitlab pipelines. My gitlab runner is a ubuntu 16.04 machine running each build in a docker containe
Make contents of $HOME/.android/adbkey and $HOME/.android/adbkey.pub persistent between the runs by mapping the folder or just re-creating the files inside every container instance.