Skip to content

Commit

Permalink
Due to a change in GoReleaser, some of the binary release
Browse files Browse the repository at this point in the history
archives now have slightly different names
  • Loading branch information
Adrien Horcholle committed Nov 1, 2023
1 parent 066facd commit d6118cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/preparation/ntfy_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
- name: Set download link
ansible.builtin.set_fact:
_release_download_url: "https://github.com/binwiederhier/ntfy/releases/download/v{{ ntfy_version }}/ntfy_{{ ntfy_version }}_linux_{{ release_binary_arch }}.tar.gz"

when: ntfy_version is version('2.6.1', '>=')
- name: Set download link
ansible.builtin.set_fact:
_release_download_url: "https://github.com/binwiederhier/ntfy/releases/download/v{{ ntfy_version }}/ntfy_{{ ntfy_version }}_linux_{{ release_binary_arch_old }}.tar.gz"
when: ntfy_version is version('2.6.1', '<')
- name: Probe download link is valid
ansible.builtin.uri:
url: "{{ _release_download_url }}"
Expand Down
7 changes: 7 additions & 0 deletions vars/architecture_map.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
binary_arch_map:
i386: 'amd64'
x86_64: 'amd64'
aarch64: 'arm64'
armv7l: 'armv7'
armv6l: 'armv6'

binary_arch_map_old:
i386: 'x86_64'
x86_64: 'x86_64'
aarch64: 'arm64'
Expand Down

0 comments on commit d6118cd

Please sign in to comment.