Add gitea-runner service

This commit is contained in:
Tobias Reisinger 2023-06-19 21:15:16 +02:00
parent 41580d3711
commit 63d62bd83f
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 79 additions and 19 deletions

View file

@ -0,0 +1,23 @@
---
- name: Deploy {{ svc.name }}
tags:
- git
- gitea
- ci
- gitea-runner
block:
- import_tasks: steps/create-service-directory.yml
- import_tasks: steps/template-docker-compose.yml
- name: Check if service.env already exists
ansible.builtin.stat:
path: "{{ (service_path, 'service.env') | path_join }}"
register: svc_env_file
- import_tasks: prompt-registration-token.yml
when: not svc_env_file.stat.exists or
force_gitea_runner_registration | default(False)
- import_tasks: steps/template-service-env.yml
- import_tasks: steps/start-service.yml