I have a running gitea server and now I want to test actions, so I started a gitea runner in a docker container on my local machine. The runner is visible on my gitea server and it also picks up the jobs when I commit something, but I always get an error that Docker can't authorize. What am I doing wrong?
docker-compose.yml
services:
runner:
image: gitea/act_runner:latest
environment:
CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: "${INSTANCE_URL}"
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
GITEA_RUNNER_NAME: "${RUNNER_NAME}"
GITEA_RUNNER_LABELS: "${RUNNER_LABELS}"
volumes:
- ./config.yaml:/config.yaml
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
build.yml
run-name: Test run
on:
push:
branches:
- main
pull_request:
branches:
- main
- 'feature/**'
jobs:
print-message:
runs-on: ubuntu-22.04
steps:
- name: Print message
run: echo "Hello, world!"
Output:
MacBook-MK-Docker-2(version:v0.2.11) received task 369 of job 388, be triggered by event: push
workflow prepared
evaluating expression 'success()'
expression 'success()' evaluated to 'true'