15 lines
722 B
YAML
15 lines
722 B
YAML
---
|
|
- name: Receive gitea pgp key
|
|
command: gpg --keyserver hkps://keys.openpgp.org --recv 7C9E68152594688862D62AF62D9AE806EC1592E2
|
|
register: result
|
|
changed_when: '"not changed" not in result.stderr'
|
|
|
|
- name: Download gitea asc file
|
|
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"
|
|
|
|
- name: Verify gitea binary with gpg
|
|
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'
|