Closed sarthakpati closed 1 year ago
--mount=type=bind,source=/home/runner/work/Front-End/Front-End,target=/Front-End
Not sure what you're trying to achieve but that's not a correct value for the secrets
input. See https://docs.docker.com/build/ci/github-actions/secrets/
RUN --mount=type=bind,target=. RUN echo "running ls -l" && ls -l
Defined mounts are only available for the RUN
instruction where they are defined. I guess you want smth like:
RUN --mount=type=bind,target=. echo "running ls -l" && ls -l
This gives me the following error:
I don't see any error here
Looking at the issue description I guess you want to mount ./Front-End
? If so you can just use a bind mount:
RUN --mount=type=bind,target=./Front-End echo "running ls -l" && ls -l
More info: https://docs.docker.com/engine/reference/builder/#run---mount
Troubleshooting
I am trying to make the pull request location for a repo available to the Dockerfile: https://github.com/FeTS-AI/Front-End/pull/58/files#diff-dbade1e5797a7633e024a7685a43a7cbd96ae6fefc6314294807ae34cd83712c
Behaviour
Steps to reproduce this issue
10 [5/7] RUN echo "running ls -l" && ls -l
10 0.356 running ls -l
10 0.359 total 34152
10 0.359 drwxr-xr-x 1 root root 4096 Sep 27 2019 CaPTk
10 0.359 -rw-r--r-- 1 root root 34958860 Nov 2 2018 cmake-3.12.4-Linux-x86_64.sh
10 [5/7] RUN echo "running ls -l" && ls -l
10 0.356 running ls -l
10 0.359 total 34152
10 0.359 drwxr-xr-x 1 root root 4096 Sep 27 2019 CaPTk
10 0.359 drwxr-xr-x 1 root root 4096 Sep 27 2019 Front-End
10 0.359 -rw-r--r-- 1 root root 34958860 Nov 2 2018 cmake-3.12.4-Linux-x86_64.sh
9 [4/7] RUN --mount=type=bind,target=.
9 DONE 0.4s
10 [5/7] RUN echo "running ls -l" && ls -l
10 0.356 running ls -l
10 0.359 total 34152
10 0.359 drwxr-xr-x 1 root root 4096 Sep 27 2019 CaPTk
10 0.359 -rw-r--r-- 1 root root 34958860 Nov 2 2018 cmake-3.12.4-Linux-x86_64.sh