Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xw185019-ncr opened this issue Jun 2, 2021 · 2 comments
Open

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

xw185019-ncr opened this issue Jun 2, 2021 · 2 comments

Comments

@xw185019-ncr
Copy link

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

@marcofranssen
Copy link

What you did should work.

if [[ -n $RUNNER_LABELS ]]; then

@xw185019-ncr
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants