Permissions error when building actions container, no such issue on local #25666
-
I am attemtping to create a docker container action after reading this tutorial. On local, I have the following Dockerfile:
I am able to build this image no problem on local. But when I attempt to create my first action after reading the tutorial, I get a permissions error. Not sure which info is relevant, but here’s my action.yml:
My .github/workflows/main.yml:
When I push and then navigate to the repos Actions tab, I see the workflow failing to build the image starting at what looks like line 34 Output of Actions ‘building docker image’ step:
Why am I able to build this image on local but not when attempting to create a new github docker container action? How can I overcome this permissions error while building with Github actions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
According to the log above the build works, but running the container fails (see the The documentation describes those limitations here: Dockerfile support for GitHub Actions - GitHub Docs |
Beta Was this translation helpful? Give feedback.
According to the log above the build works, but running the container fails (see the
/usr/bin/docker run
line and below). The “permission denied” is probably because you have aUSER
instruction in the Dockerfile.WORKDIR
won’t work as expected either, at least not after build.The documentation describes those limitations here: Dockerfile support for GitHub Actions - GitHub Docs