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 hosts: aws
become: true become: true
vars_files: vars_files:
- ../vars/secrets.yml - ../../vars/secrets.yml
vars: vars:
postgresql_user: gitea postgresql_user: gitea
postgresql_db: giteadb postgresql_db: giteadb
@ -13,6 +13,7 @@
- name: install postgresql - name: install postgresql
apt: apt:
name: "{{item}}" name: "{{item}}"
state: present
loop: loop:
- postgresql - postgresql
- postgresql-contrib - postgresql-contrib
@ -147,3 +148,13 @@
name: gitea name: gitea
state: started state: started
enabled: yes 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: collections:
- ansible.posix - ansible.posix
- community.general - community.general