aboutsummaryrefslogtreecommitdiff
path: root/roles/git/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/git/tasks')
-rw-r--r--roles/git/tasks/main.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml
index 75dec39..2d0e065 100644
--- a/roles/git/tasks/main.yml
+++ b/roles/git/tasks/main.yml
@@ -9,6 +9,7 @@
loop:
- gitolite-cgit
- runner-zola
+ - runner-mirror
- name: Build gitolite cgit image
containers.podman.podman_image:
@@ -63,3 +64,22 @@
# Use 'z' to shared-ly relable selinux contexts.
- "{{ DATA_ROOT }}/nginx/www:/www:z"
recreate: "{{ runner_zola_build.changed }}"
+
+- name: Build mirror runner image
+ containers.podman.podman_image:
+ name: runner-mirror
+ path: "{{ DATA_ROOT }}/git/runner-mirror"
+ force: true
+ register: runner_mirror_build
+
+- name: Start mirror runner
+ containers.podman.podman_container:
+ name: runner-mirror
+ image: runner-mirror
+ network: "{{ NETWORK }}"
+ volumes:
+ # Use 'z' to shared-ly relable selinux contexts.
+ - "{{ DATA_ROOT }}/git/repos/projects.list:/projects.list:ro,z"
+ # Use 'Z' to privately relable selinux contexts.
+ - "{{ DATA_ROOT }}/git/runner-mirror/mirror.key:/mirror.key:ro,Z"
+ recreate: "{{ runner_mirror_build.changed }}"