From 0c9a2aab0a6ad3840b945bb7835715ecd0786169 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 26 Mar 2023 20:37:43 +0100 Subject: [PATCH] Add custom branding to gitea --- ansible/roles/gitea/tasks/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ansible/roles/gitea/tasks/main.yml b/ansible/roles/gitea/tasks/main.yml index 5e0d563..eef4951 100644 --- a/ansible/roles/gitea/tasks/main.yml +++ b/ansible/roles/gitea/tasks/main.yml @@ -36,3 +36,19 @@ owner: "{{ docker_user.name }}" notify: restart gitea become: true + +- name: Create public images directory + file: + path: "{{ app_data_dir }}/gitea/data/custom/public/img" + state: directory + owner: "{{ docker_user.name }}" + mode: "{{ docker_compose_directory_mask }}" + become: true + +- name: Install custom branding + unarchive: + src: https://gitea.theorangeone.net/api/packages/sys/generic/gitea-branding/latest/branding.zip + dest: "{{ app_data_dir }}/gitea/data/custom/public/img" + remote_src: true + owner: "{{ docker_user.name }}" + become: true