Files
homelab/tasks/gitea-runner.yml
Alex Frantz 45c14dfe6c
Some checks failed
Deploy Containers / Prepare (push) Failing after 10s
add data folder
2025-07-29 20:25:50 -04:00

23 lines
640 B
YAML

---
- name: Create folder structure
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ data_dir }}/gitea"
- name: Create Gitea Runner Docker Container
docker_container:
name: gitea_runner
image: docker.io/gitea/act_runner:nightly
restart_policy: unless-stopped
recreate: true
network_mode: host
volumes:
- "{{ data_dir }}/gitea:/data"
env:
GITEA_INSTANCE_URL: "{{ GITEA_INSTANCE_URL }}"
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ GITEA_RUNNER_REGISTRATION_TOKEN }}"
GITEA_RUNNER_NAME: "{{ GITEA_RUNNER_NAME }}"
GITEA_RUNNER_LABELS: "{{ GITEA_RUNNER_LABELS }}"