run gitea runners via actions

This commit is contained in:
Ibrahim Mkusa 2024-11-05 10:14:16 -05:00
parent 6587463aa6
commit 4d6f6981ec
2 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,7 @@
hosts: aws
become: true
vars_files:
- ../vars/secrets.yml
- ../../vars/secrets.yml
vars:
postgresql_user: gitea
postgresql_db: giteadb
@ -13,6 +13,7 @@
- name: install postgresql
apt:
name: "{{item}}"
state: present
loop:
- postgresql
- postgresql-contrib
@ -147,3 +148,13 @@
name: gitea
state: started
enabled: yes
- name: start the action docker runner
community.docker.docker_container:
name: gitea_runner
state: started
image: gitea/act_runner:latest
env:
GITEA_INSTANCE_URL: "https://gitea.kwerezigua.org"
GITEA_RUNNER_REGISTRATION_TOKEN: "{{gitea_action_token}}"
GITEA_RUNNER_NAME: "mfanyakazi"

View File

@ -1,3 +1,4 @@
---
collections:
- ansible.posix
- community.general