-
Notifications
You must be signed in to change notification settings - Fork 36
Description
I'm attempting to use Rocker and adapt it to my own preferences. I need to look up the correct version of a remote package on github to install.
The following sequence of steps is the attempt to achieve this.
Github ACtion > Docker build> FROM rocker/verse ; bash shell script > Rscript> gert::git_remote_ls(remote = "https://github.com/cam-ctu/cctu.git")
which creates an error:
Error in libgit2::git_repository_open_ext :
could not find repository from '/'
Calls: ... git_open -> git_repository_open -> raise_libgit2_error
No problem if I locally run the Rscript.
I suspect this is something to do with authentication from within a docker build. I've no idea if it is possible to pass or read authentication details from the parent repository or runner in the github actions. Or there is some extra arguments I could provide to the git_remote_ls() command?
A solution is to find the version separately and feed this into the docker script, rather than trying to look it up within the docker build. But thought I'd pass this scenario on to you.