Skip to content

How to defined RUNNER_LABELS in docker-compose file? #46

Description

@xw185019-ncr

HI , i have create a docker-compose.yaml and try to run the runner with RUNNER_LABELS environment variable, but it doesn't work as expected.
here is my docker-compose.yaml file

version: "3.7"

services:
    runner:
      image: tcardonne/github-runner:latest
      environment:
        RUNNER_NAME: "my-runner"
        RUNNER_REPOSITORY_URL: ${RUNNER_REPOSITORY_URL}
        #RUNNER_ORGANIZATION_URL: ${RUNNER_ORGANIZATION_URL}
        GITHUB_ACCESS_TOKEN: ${GITHUB_ACCESS_TOKEN}
        RUNNER_LABELS: "my-runner"
      volumes:
        - /var/run/docker.sock:/var/run/docker.sock

after i docker-compose up, the runner did run successfully but without "my-runner" label attached.

Can you help me with this?

regards
dawnseeker8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions