I'm trying to use Game CI's Github Actions on my Gitea server.
The server is hosted using Docker and uses Gitea's act runner as a worker for Actions.
The docker host is a CentOS on the cloud.
In that context, when using the unity-test-runner@v4 action, I quickly encounter an error following the docker command ran by the action: /bin/bash: line 1: /steps/entrypoint.sh: No such file or directory
Here is the full command that generates this error:
I think it's a permission error because the files do exist on the host and the volume is correctly bound at this point in the command --volume /run/act/actions/game-ci-unity-test-runner@v4/dist/platforms/ubuntu:/steps:z. Therefore, the entrypoint.sh should be in the launched container but the No such file or directory error can be raised even though the file exists but the process doesn't have the right to execute it, which is why I think this is the issue there.
However, I couldn't find a way to give this permission to the created container. Here a few things I tried:
running docker:dind as a service for my job to have my worklow run docker commands with the privileged option. It's the first time I'm using any kind of dind setup or external service in a workflow so I might have made a mistake there because it changed nothing.
use the runAsHostUser input which unfortunately does nothing either.
I have read through the documentation and searched the indexed internet for an answer but couldn't really find anything useful. Maybe someone here will have an idea of what's the issue or a workaround?
Thanks!
How to reproduce
Gitea instance docker setup a bit simplified to stay as concise as possible
Hello,
I'm trying to use Game CI's Github Actions on my Gitea server. The server is hosted using Docker and uses Gitea's act runner as a worker for Actions. The docker host is a CentOS on the cloud.
In that context, when using the unity-test-runner@v4 action, I quickly encounter an error following the docker command ran by the action:
/bin/bash: line 1: /steps/entrypoint.sh: No such file or directory
Here is the full command that generates this error:
I think it's a permission error because the files do exist on the host and the volume is correctly bound at this point in the command
--volume /run/act/actions/game-ci-unity-test-runner@v4/dist/platforms/ubuntu:/steps:z
. Therefore, theentrypoint.sh
should be in the launched container but theNo such file or directory
error can be raised even though the file exists but the process doesn't have the right to execute it, which is why I think this is the issue there.However, I couldn't find a way to give this permission to the created container. Here a few things I tried:
docker:dind
as a service for my job to have my worklow run docker commands with theprivileged
option. It's the first time I'm using any kind of dind setup or external service in a workflow so I might have made a mistake there because it changed nothing.runAsHostUser
input which unfortunately does nothing either.I have read through the documentation and searched the indexed internet for an answer but couldn't really find anything useful. Maybe someone here will have an idea of what's the issue or a workaround?
Thanks!
How to reproduce
Gitea instance docker setup a bit simplified to stay as concise as possible
Workflow file a bit simplified to stay as concise as possible
The command forged by the
unity-test-runner
action should find the/steps/entrypoint.sh
file and be able to launch it.