-
I have this simple workflow to build a Flutter app, but it is failing to create a file at the home /github/home/ folder.
I attached the container initialization log and it is possible to see that the docker image has the home volume mapped to it.
Here are the logs for this action. https://github.com/actions/docker/files/3587247/initialize-containers.log https://github.com/actions/docker/files/3587248/install-dependencies.log |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I’m not familiar with the |
Beta Was this translation helpful? Give feedback.
-
It works on Gitlab CI with the same image, but doesn’t on GitHub Action |
Beta Was this translation helpful? Give feedback.
-
Solved it by adding “sudo” before any command that requires permission. It also requires that the full path of Flutter is referenced when executing the commands. The image was running with “cirrus” user and therefore didn’t have permission. More info here: https://stackoverflow.com/a/58469603/3231778 |
Beta Was this translation helpful? Give feedback.
Solved it by adding “sudo” before any command that requires permission. It also requires that the full path of Flutter is referenced when executing the commands.
The image was running with “cirrus” user and therefore didn’t have permission.
More info here: https://stackoverflow.com/a/58469603/3231778