最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Gitea Docker runner failed to authenticate - Stack Overflow

programmeradmin4浏览0评论

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'
发布评论

评论列表(0)

  1. 暂无评论