I run a docker-in-docker container in my GitHub action and need to mount a folder from the host (repository).
action.yml
...
runs:
using: 'docker'
image: 'Dockerfile'
...
Dockerfile
FROM docker:stable
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
entrypoint.sh
...
docker run -d ... -v /github/workspace/.github/config:/opt/dest/config ...
...
The files in the folder do exist under the GITHUB_WORKSPACE from a debug print in the entrypoint.sh. But they appear not to be mounted properly to the inner container.