Github Actions: Mounting volumes to retrieve downloaded files #2315
-
I followed I'm trying to setup in Github actions. I have a container to run job (job_container) and a container to provide Selenium Service (selenium_container). After chown, the permission looks fine from job_container:
After create selenium_container with volume, the owner is root, not seluser as expected -> does not have permission to write downloaded files.
Could someone point where am I wrong here? My workflow looks like this:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
After a while, seems I found reason. When job_container starts, its folder Then when docker run, I have to mount runner machine insteads of job_container workspace, the command should be:
|
Beta Was this translation helpful? Give feedback.
After a while, seems I found reason.
When job_container starts, its folder
$GITHUB_WORKSPACE
is mounted to folder${{ github/workspace }}
of runner machine. Please note that in Github actions until this time,${{ github/workspace }}
is different from$GITHUB_WORKSPACE
.Then when docker run, I have to mount runner machine insteads of job_container workspace, the command should be: