Skip to content

Commit 893836e

Browse files
committed
fix: assure nix version we need is installed at this stage + perm fix
1 parent aca4752 commit 893836e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/testinfra-ami-build.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com
2626
trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
2727
28-
- name: Fix nix permissions
29-
run: sudo chown -R $USER /nix/var/nix/profiles/per-user
30-
3128
- name: Set PostgreSQL versions
3229
id: set-versions
3330
run: |
@@ -57,6 +54,17 @@ jobs:
5754
- name: Checkout Repo
5855
uses: supabase/postgres/.github/actions/shared-checkout@HEAD
5956

57+
- name: Install nix
58+
uses: cachix/install-nix-action@v27
59+
with:
60+
install_url: https://releases.nixos.org/nix/nix-2.29.1/install
61+
extra_nix_config: |
62+
substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com
63+
trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
64+
65+
- name: Fix nix permissions
66+
run: sudo chown -R $USER /nix/var/nix/profiles/per-user
67+
6068
- id: args
6169
uses: mikefarah/yq@master
6270
with:

0 commit comments

Comments
 (0)