Compare commits
3 Commits
1c478e6ab5
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4ebc4bad7 | ||
|
|
d5e473304a | ||
|
|
5deb2e6e48 |
@@ -3,6 +3,7 @@ gitea_runner_user: gitea-runner
|
|||||||
gitea_runner_home: /home/gitea-runner
|
gitea_runner_home: /home/gitea-runner
|
||||||
gitea_runner_version: "0.2.13"
|
gitea_runner_version: "0.2.13"
|
||||||
gitea_runner_arch: linux-amd64
|
gitea_runner_arch: linux-amd64
|
||||||
|
gitea_runner_capacity: 4
|
||||||
|
|
||||||
# Multiple Gitea instances to run actions runners for
|
# Multiple Gitea instances to run actions runners for
|
||||||
gitea_runners:
|
gitea_runners:
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
export IDF_TOOLS_PATH="{{ gitea_runner_home }}/.espressif"
|
export IDF_TOOLS_PATH="{{ gitea_runner_home }}/.espressif"
|
||||||
{{ esp_idf_path }}/install.sh esp32
|
{{ esp_idf_path }}/install.sh esp32
|
||||||
args:
|
args:
|
||||||
creates: "{{ gitea_runner_home }}/.espressif/tools"
|
creates: "{{ gitea_runner_home }}/.espressif/python_env"
|
||||||
environment:
|
environment:
|
||||||
HOME: "{{ gitea_runner_home }}"
|
HOME: "{{ gitea_runner_home }}"
|
||||||
tags: gitea-actions
|
tags: gitea-actions
|
||||||
|
|||||||
@@ -32,3 +32,42 @@
|
|||||||
state: directory
|
state: directory
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
tags: gitea-actions
|
tags: gitea-actions
|
||||||
|
|
||||||
|
- name: create .ssh directory
|
||||||
|
become: true
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ gitea_runner_home }}/.ssh"
|
||||||
|
state: directory
|
||||||
|
owner: "{{ gitea_runner_user }}"
|
||||||
|
group: "{{ gitea_runner_user }}"
|
||||||
|
mode: "0700"
|
||||||
|
tags: gitea-actions
|
||||||
|
|
||||||
|
- name: generate SSH key for gitea-runner
|
||||||
|
become: true
|
||||||
|
become_user: "{{ gitea_runner_user }}"
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: ssh-keygen -t ed25519 -f {{ gitea_runner_home }}/.ssh/id_ed25519 -N "" -C "gitea-runner@galactica"
|
||||||
|
creates: "{{ gitea_runner_home }}/.ssh/id_ed25519"
|
||||||
|
tags: gitea-actions
|
||||||
|
|
||||||
|
- name: add Gitea SSH host keys to known_hosts
|
||||||
|
become: true
|
||||||
|
become_user: "{{ gitea_runner_user }}"
|
||||||
|
ansible.builtin.shell:
|
||||||
|
cmd: ssh-keyscan -p 2222 {{ item }} >> {{ gitea_runner_home }}/.ssh/known_hosts 2>/dev/null
|
||||||
|
args:
|
||||||
|
creates: "{{ gitea_runner_home }}/.ssh/known_hosts"
|
||||||
|
loop:
|
||||||
|
- git.skudak.com
|
||||||
|
- git.debyl.io
|
||||||
|
tags: gitea-actions
|
||||||
|
|
||||||
|
- name: set known_hosts permissions
|
||||||
|
become: true
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ gitea_runner_home }}/.ssh/known_hosts"
|
||||||
|
owner: "{{ gitea_runner_user }}"
|
||||||
|
group: "{{ gitea_runner_user }}"
|
||||||
|
mode: "0644"
|
||||||
|
tags: gitea-actions
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ log:
|
|||||||
|
|
||||||
runner:
|
runner:
|
||||||
file: {{ act_runner_work_dir }}/{{ runner_name }}/.runner
|
file: {{ act_runner_work_dir }}/{{ runner_name }}/.runner
|
||||||
capacity: 1
|
capacity: {{ gitea_runner_capacity | default(4) }}
|
||||||
timeout: 3h
|
timeout: 3h
|
||||||
insecure: false
|
insecure: false
|
||||||
fetch_timeout: 5s
|
fetch_timeout: 5s
|
||||||
|
|||||||
Reference in New Issue
Block a user