Skip to content

Commit a902966

Browse files
committed
fix: arch handling postgrest
1 parent e8ba2c4 commit a902966

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ansible/manifest-playbook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
vars:
88
arch: "{{ arch | default('arm64') }}"
9-
arch_alt: "{{ 'aarch64' if arch == 'arm64' else 'x86_64' }}"
9+
postgrest_binary: "{{ 'ubuntu-aarch64' if arch == 'arm64' else 'linux-static-x86-64' }}"
1010
gotrue_arch: "{{ 'arm64' if arch == 'arm64' else 'x86' }}"
1111
gotrue_checksum: "{{ gotrue_arm_release_checksum if arch == 'arm64' else gotrue_x86_release_checksum }}"
1212
postgrest_checksum: "{{ postgrest_arm_release_checksum if arch == 'arm64' else postgrest_x86_release_checksum }}"
@@ -31,7 +31,7 @@
3131

3232
- name: PostgREST - download ubuntu binary archive (arm)
3333
get_url:
34-
url: "https://github.com/PostgREST/postgrest/releases/download/v{{ postgrest_release }}/postgrest-v{{ postgrest_release }}-ubuntu-{{ arch_alt }}.tar.xz"
34+
url: "https://github.com/PostgREST/postgrest/releases/download/v{{ postgrest_release }}/postgrest-v{{ postgrest_release }}-{{ postgrest_binary }}.tar.xz"
3535
dest: /tmp/postgrest-{{ postgrest_release }}-{{ arch }}.tar.xz
3636
checksum: "{{ postgrest_checksum }}"
3737
timeout: 60

0 commit comments

Comments
 (0)