docker-github-runner
docker-github-runner copied to clipboard
How to defined RUNNER_LABELS in docker-compose file?
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
What you did should work.
https://github.com/tcardonne/docker-github-runner/blob/21400f71b894946de9b75127ba0353807cde1135/docker/entrypoint.sh#L36
Actually after i switch the image from tcardonne/github-runner:latest
to tcardonne/github-runner:ubuntu-20.04
. then the label start working, but it didnt work for latest
tag which use debian for so reason.