Closed larryclaman closed 3 years ago
@larryclaman Thanks for reporting this issue.
I also think that this problem is because workingDir
is being set after the copy
command.
Ideally, the copy
command should be done after the config
command if we are setting the workingDir
.
We will update you once we add a fix for this.
@larryclaman we have fixed this. Could you please try again and let us know if you still face any problems.
Version v2
Describe the bug
Attempting to use buildah-build action but having a problem with getting the copy command to honor the workdir. My action looks like:
What's happening is that the content from my local
myapp
directory is being copied into the root of the image, rather than into the /app workdir. I have tried setting workdir to/app
and/app/
, but in both cases, the content is copied into the root, not into the workdir. I do see that the '/app' directory was created; it's just not being used.When looking at the run, it appears that the copy command is happening before the build config command with the workdir argument, so I think this is the cause of the problem:
Steps to reproduce, workflow links, screenshots
see above