Hi there,
I’m currently trying to switch from Github Actions to Gitea Actions.
The one thing I can’t get to work is the docker/login action. I use the one hosted on gitea.com:
docker/login-action - login-action - Gitea: Git with a cup of tea
Here is the step in my actions file:
- name: Login to the Container registry
uses: docker/login-action@v2
with:
registry: <my-gitea-url>
username: <my-username>
password: ${{ secrets.CI_TOKEN }}
Within the project I added a secret called CI_TOKEN. Now when the action runs, this is the output:
Logging into <my-gitea-url>...
::error::Unable to locate executable file: docker. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
The error seems to complain, that there is no docker installed on the runner. This is the compose file I use to run the runner:
version: '3.8'
services:
gitea_runner:
image: gitea/act_runner
container_name: GiteaRunner
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- GITEA_RUNNER_NAME=Gitea Runner
- GITEA_INSTANCE_URL=<my-gitea-url>
- GITEA_RUNNER_REGISTRATION_TOKEN=<my-gitea-token>
I mount the docker socket inside the container, so in my opinion this should work well.
Can somebody help me and tell me how to debug this?