From 77d486a09fd034286508c019ffe7724df3195de5 Mon Sep 17 00:00:00 2001 From: Julien Riou Date: Sat, 22 Feb 2025 10:01:28 +0100 Subject: [PATCH] feat: Add version Signed-off-by: Julien Riou --- defaults/main.yml | 1 + templates/docker-compose.yml.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 38d220d..b483c71 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,4 +1,5 @@ --- +forgejo_version: 10 forgejo_home_dir: /var/lib/forgejo forgejo_config_dir: /etc/forgejo forgejo_web_port: 3000 diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index 1402d8b..d54e1d7 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -2,7 +2,7 @@ {{ ansible_managed | comment }} services: server: - image: codeberg.org/forgejo/forgejo:9 + image: codeberg.org/forgejo/forgejo:{{ forgejo_version }} container_name: forgejo-server env_file: {{ forgejo_config_dir }}/server.env restart: always