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