I am looking for a university student or anyone with some spare time to do some research on how to pull/fetch PUBIC and PRIVATE repos into a container at docker build stage (not run stage).
OAuth refresh token
I have a docker swarm service which contains a PHP project stored in a private repo on github xor gitlab xor bitbucket.
The container's dockerfile will have everything required clone or pull the project and then deploy the project.
Docker swarm needs to be able to always pull/clone the project because it may kickstart a container anytime.
The solution therefore can't use an access token because they expire after 1 hour.
It may require a OAuth refresh token and/or SSH key.