From 37fd91a24dd61484899de472b2a42b6e242b0416 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 26 Nov 2023 16:18:08 +0000 Subject: [PATCH 1/2] chore(deps): update codeberg.org/forgejo/forgejo docker tag to v1.21 --- host_vars/pottwal.n39.eu/vars.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host_vars/pottwal.n39.eu/vars.yml b/host_vars/pottwal.n39.eu/vars.yml index 1e08226..107b711 100644 --- a/host_vars/pottwal.n39.eu/vars.yml +++ b/host_vars/pottwal.n39.eu/vars.yml @@ -12,7 +12,7 @@ cleanuri_amqp_vhost: "/cleanuri" forgejo_host_port: 9091 forgejo_ssh_port: 2222 forgejo_domain_name: git.n39.eu -forgejo_image: codeberg.org/forgejo/forgejo:1.20 +forgejo_image: codeberg.org/forgejo/forgejo:1.21 shlink_host_port: 8083 shlink_domain_name: sl.n39.eu From 6db795906d37a44ff4c5342b879c3cadebecd0df Mon Sep 17 00:00:00 2001 From: David Kilias Date: Tue, 28 Nov 2023 18:08:54 +0000 Subject: [PATCH 2/2] feat: add ansible tags to forgejo tasks --- host-pottwal.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/host-pottwal.yml b/host-pottwal.yml index 78abefc..83bc77a 100644 --- a/host-pottwal.yml +++ b/host-pottwal.yml @@ -42,14 +42,16 @@ ansible.builtin.stat: path: "{{ data_dir }}/forgejo" register: forgejo_dir + tags: ["forgejo"] - name: Fail if forgejo data dir does not exist ansible.builtin.fail: msg: "Forgejo data dir is missing, please restore from the backup!" when: not forgejo_dir.stat.exists + tags: ["forgejo"] # If port 2222 is changed here, it must also be adapted # in the forgejo config file (see application volume)!! - - name: Setup the docker container for gitea + - name: Setup the docker container for forgejo docker_container: name: forgejo image: "{{ forgejo_image }}" @@ -73,6 +75,7 @@ USER_GID: "1000" volumes: - "{{ data_dir }}/forgejo:/data:rw" + tags: ["forgejo"] - name: Setup proxy site "{{ forgejo_domain_name }}" include_role: @@ -80,6 +83,7 @@ vars: site_name: "{{ forgejo_domain_name }}" proxy_port: "{{ forgejo_host_port }}" + tags: ["forgejo"] - name: Ensure apt-cacher container is running docker_container: