Skip to content

Create your own docker image to run your own self-hosted github actions.

Notifications You must be signed in to change notification settings

obg-lab/github-actions-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github actions runner on Docker for Organizations

Create your own docker image to run your own self-hosted github actions.

Heads up, You will need an organization.

Instructions

  1. Clone this repo

    git clone [email protected]:obg-lab/action-runner-org-docker
  2. Build the docker image

    cd action-runner-org-docker
    docker build -t github-actions-runner .
  3. Run the container

    To run the container you will need to fill some environment variables.

    ENV VAR Description Default Value
    ORGANIZATION The identification of your organization (obg-lab in my case) (empty)
    ACCESS_TOKEN Your personal access token. You can create one here (empty)
    RUNNER_NAME The name of your runner docker-runner
    LABELS Labels of your runner self-hosted, docker

    Run the runner:

    Docker

    docker run -it github-actions-runner -e ORGANIZATION [your-organization] -e ACCESS_TOKEN [your-token]

    Docker Compose

    Or update the docker-compose.yml environments section and run like this:

    docker-compose up --build

    The log output will looks like this. When you see Listening for Jobs log it means your runner is ready and you also can see it on actions page in your organization.

    Console log

Next steps

  • deploy it to docker hub
  • traduzir readme para português (pt-BR)
  • alterar para funcionar com contas não organizações
  • adicionar fund

About

Create your own docker image to run your own self-hosted github actions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published