From 6a9c4aedaea444b33dd9064dce04e468cb730945 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 23 Jun 2020 16:32:00 +0200 Subject: [PATCH] gitea: implement fetching binary --- roles/gitea/defaults/main.yml | 4 +++- roles/gitea/tasks/main.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/gitea/defaults/main.yml b/roles/gitea/defaults/main.yml index 65d8f36..7725b8c 100644 --- a/roles/gitea/defaults/main.yml +++ b/roles/gitea/defaults/main.yml @@ -2,5 +2,7 @@ gitea_user: gogs gitea_group: gogs -gitea_version: 1.11.6 + +gitea_checksum: sha256:20264002c28117d3107d3b01efde2cecea2cd98db22e18edd108ed25ae0edc53 +gitea_version: 1.12.1 gitea_url: https://dl.gitea.io/gitea/{{ gitea_version }}/gitea-{{ gitea_version }}-linux-amd64 diff --git a/roles/gitea/tasks/main.yml b/roles/gitea/tasks/main.yml index 92e928e..a08104b 100644 --- a/roles/gitea/tasks/main.yml +++ b/roles/gitea/tasks/main.yml @@ -13,7 +13,9 @@ - /opt/gitea/custom - /opt/gitea/custom/conf -# TODO fetch gitea binary +- name: Download gitea binary + get_url: url={{ gitea_url }} dest=/opt/gitea/gitea checksum={{ gitea_checksum }} mode=0755 + notify: Restart gitea - name: Configure gitea template: src=app.ini.j2 dest=/opt/gitea/custom/conf/app.ini force=no owner={{ gitea_user }}