Sign inSign up

bsmeding/gitea-act-runner-ansible

By bsmeding

โ€ขUpdated about 12 hours ago

Gitea runner container with Ansible

Image
1

6.0K

bsmeding/gitea-act-runner-ansible repository overview

โ ๐Ÿณ Gitea Act Runner with Ansible

This Docker image extends the official gitea/act_runner with Ansible and custom Python dependencies installed via requirements.txt.

It supports automatic registration to a Gitea instance using environment variables.


โ ๐Ÿš€ Quick Start with Docker

โ ๐Ÿ”ง Required Environment Variables
VariableDescriptionExample
GITEA_INSTANCE_URLURL of your Gitea serverhttps://gitea.example.com
GITEA_RUNNER_TOKENRegistration token from Giteaghp_xxxxxx
GITEA_RUNNER_NAMEName for this runnermy-ansible-runner
GITEA_RUNNER_LABELSLabels this runner supportsubuntu-latest:docker

โ ๐Ÿณ Run with docker run
docker run -d \
  --name gitea-ansible-runner \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v gitea_runner_data:/data \
  -e GITEA_INSTANCE_URL=https://gitea.example.com \
  -e GITEA_RUNNER_TOKEN=your_token_here \
  -e GITEA_RUNNER_NAME=my-ansible-runner \
  -e GITEA_RUNNER_LABELS=ubuntu-latest:docker \
  bsmeding/gitea-act-runner-ansible:latest

โ ๐Ÿ“ฆ Use with Docker Compose

โ 1. .env file

Create a .env file in the same directory as your docker-compose.yml:

GITEA_INSTANCE_URL=https://gitea.example.com
GITEA_RUNNER_TOKEN=your_token_here
GITEA_RUNNER_NAME=my-ansible-runner
GITEA_RUNNER_LABELS=ubuntu-latest:docker
โ 2. docker-compose.yml
version: "3"

services:
  gitea-ansible-runner:
    image: bsmeding/gitea-act-runner-ansible:latest
    container_name: gitea-ansible-runner
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - gitea_runner_data:/data
    env_file:
      - .env

volumes:
  gitea_runner_data:
โ Start it
docker compose up -d

โ ๐Ÿ“Ž Notes

  • The runner registers automatically on first run.
  • If /data/config.yaml exists, re-registration is skipped.
  • Python packages (e.g., Ansible) are installed from requirements.txt.

โ ๐Ÿงช Verify Ansible

docker run bsmeding/gitea_runner

โ ๐Ÿง‘โ€๐Ÿ’ป Author

Maintained by https://netdevops.itโ . Based on gitea/act_runner.

Tag summary

Content type

Image

Digest

sha256:ef0393f6cโ€ฆ

Size

126.6 MB

Last updated

about 12 hours ago

docker pull bsmeding/gitea-act-runner-ansible