run gitea runners via actions
This commit is contained in:
parent
6587463aa6
commit
4d6f6981ec
@ -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"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
collections:
|
collections:
|
||||||
- ansible.posix
|
- ansible.posix
|
||||||
- community.general
|
- community.general
|
||||||
|
Loading…
Reference in New Issue
Block a user