fix(core-git): не терять образ раннера и не деплоить из-за пустого файла
ansible-core-mon / deploy (push) Successful in 26s
ansible-rus-central / deploy (push) Successful in 54s
ansible-core-net / deploy (push) Successful in 58s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Successful in 1m18s
ansible-opnsense / deploy (push) Successful in 8s
ansible-core-mon / deploy (push) Successful in 26s
ansible-rus-central / deploy (push) Successful in 54s
ansible-core-net / deploy (push) Successful in 58s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Successful in 1m18s
ansible-opnsense / deploy (push) Successful in 8s
Архив homelab-ansible хранится на диске CT, проверка раннера вынесена в отдельную кнопку, cAdvisor смотрит свой порт. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
db92435117
commit
321c78fc27
10 files changed
+89
-7
No files matched your search
@@ -51,6 +51,7 @@
|
||||
- { path: "{{ gitea_dir }}/gitea", owner: "root", group: "root", mode: "0755" }
|
||||
- { path: "{{ gitea_dir }}/postgres", owner: "999", group: "999", mode: "0700" }
|
||||
- { path: "{{ gitea_dir }}/runner-data", owner: "root", group: "root", mode: "0700" }
|
||||
- { path: "{{ gitea_dir }}/images", owner: "root", group: "root", mode: "0700" }
|
||||
|
||||
- name: Установить compose.yaml для Gitea
|
||||
ansible.builtin.template:
|
||||
@@ -71,3 +72,16 @@
|
||||
'Recreated' in gitea_compose_up.stderr or
|
||||
'Pulled' in gitea_compose_up.stderr
|
||||
when: gitea_stack_ready
|
||||
|
||||
- name: Скрипт архива образа homelab-ansible
|
||||
ansible.builtin.template:
|
||||
src: ensure-runner-image.sh.j2
|
||||
dest: "{{ gitea_dir }}/ensure-runner-image.sh"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0700"
|
||||
when: gitea_runner_enabled
|
||||
|
||||
- name: Образ homelab-ansible в раннере или в архиве
|
||||
ansible.builtin.command: "{{ gitea_dir }}/ensure-runner-image.sh"
|
||||
when: gitea_runner_enabled and gitea_stack_ready
|
||||
Reference in new issue
Block a user