self-hosting/roles/gitea/handlers/main.yml

17 lines
737 B
YAML
Raw Normal View History

2022-04-09 11:04:23 +02:00
---
2022-04-09 12:51:52 +02:00
- name: Receive gitea pgp key
2022-04-09 11:04:23 +02:00
command: gpg --keyserver hkps://keys.openpgp.org --recv 7C9E68152594688862D62AF62D9AE806EC1592E2
register: result
changed_when: '"not changed" not in result.stderr'
2022-04-09 12:51:52 +02:00
- name: Download gitea asc file
2022-04-09 11:04:23 +02:00
get_url:
url: "https://dl.gitea.io/gitea/{{ gitea_binary.json.latest.version }}/gitea-{{ gitea_binary.json.latest.version }}-linux-{{ gitea_binary_arch }}.asc"
dest: "/tmp/gitea-{{ gitea_binary.json.latest.version }}.asc"
2022-06-25 14:48:38 +02:00
mode: 0644
2022-04-09 11:04:23 +02:00
2022-04-09 12:51:52 +02:00
- name: Verify gitea binary with gpg
2022-04-09 11:04:23 +02:00
command: "gpg --verify /tmp/gitea-{{ gitea_binary.json.latest.version }}.asc /home/git/gitea-{{ gitea_binary.json.latest.version }}"
register: result
failed_when: '"Good signature from" not in result.stderr'