From 4d6f6981ecceb8bdf4e5fde92fd377155e3ea8cc Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Tue, 5 Nov 2024 10:14:16 -0500 Subject: [PATCH] run gitea runners via actions --- playbooks/gitea/setup_database_gitea.yml | 13 ++++++++++++- requirements.yml | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/playbooks/gitea/setup_database_gitea.yml b/playbooks/gitea/setup_database_gitea.yml index 5150741..fddfa09 100644 --- a/playbooks/gitea/setup_database_gitea.yml +++ b/playbooks/gitea/setup_database_gitea.yml @@ -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" diff --git a/requirements.yml b/requirements.yml index 397d317..ede773b 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1,3 +1,4 @@ +--- collections: - ansible.posix - community.general