Skip to content

In workflows, how to use ghcr docker image? #25684

Answered by airtower-luna
heldrida asked this question in Actions
Discussion options

You must be logged in to vote
heldrida:

For some reason, rustup should be located in /github/home/.cargo , instead of the default cargo installation directory which is /root/.cargo/bin .

This right there is the problem. When using a container as a job container, the runner mounts several directories from the host into the container. /github/home is one of the target directories, which hides anything you might have put there in the container image (check the “Initialize containers” step in your workflow logs).

So if you want your software to be available inside the job container, it really needs to go anywhere but /github/ inside the container image. 🙂

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants