I am unable to mount ${{ github.workspace }} in a way that is visible within the Docker image. The reasoning behind this is that I would like to build the image from the pull requests' code changes.
When running the action and using context: . you are already in ${{ github.workspace }}. You just need to add COPY . /myproject if you want to copy the content in your image.
Troubleshooting
N.A.
Behaviour
I am unable to mount
${{ github.workspace }}
in a way that is visible within the Docker image. The reasoning behind this is that I would like to build the image from the pull requests' code changes.Steps to reproduce this issue
Here are the full workflow file and Dockerfile for reference.
Expected behaviour
I would like to make the contents of
${{ github.workspace }}
from the host machine running the workflow inside the container as/Front-End
.Actual behaviour
/Front-End
seems to be empty.Configuration
I am using the following (relevant) sections in the workflow file:
Logs
logs_71.zip
Update
20230712: I tried adding
VOLUME /Front-End
to the Dockerfile as well, but to no avail.