File tree Expand file tree Collapse file tree 9 files changed +13
-3
lines changed
ansible/files/admin_api_scripts/pg_upgrade_scripts Expand file tree Collapse file tree 9 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 5656 ${{ inputs.push-to-cache == 'true' && 'post-build-hook = /etc/nix/upload-to-cache.sh' || '' }}
5757 max-jobs = 4
5858 extra-system-features = kvm
59+ - name : Print Nix version
60+ shell : bash
61+ run : nix --version
5962 - name : Setup KVM permissions
6063 shell : bash
6164 run : |
Original file line number Diff line number Diff line change 1818 role-session-name : gha-oidc-${{ github.run_id }}
1919 role-duration-seconds : ${{ inputs.aws-role-duration }}
2020
21+ - name : Print Nix version
22+ shell : bash
23+ run : nix --version
2124 - name : Write creds files
2225 shell : bash
2326 run : |
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ extra-trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7V
2929EOF
3030RUN curl -L https://releases.nixos.org/nix/nix-2.33.4/install | sh -s -- --daemon --no-channel-add --yes --nix-extra-conf-file /tmp/extra-nix.conf
3131ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
32+ RUN nix --version
3233
3334WORKDIR /nixpg
3435COPY . .
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ extra-substituters = https://nix-postgres-artifacts.s3.amazonaws.com
2828extra-trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=
2929EOF
3030RUN curl -L https://releases.nixos.org/nix/nix-2.33.4/install | sh -s -- --daemon --no-channel-add --yes --nix-extra-conf-file /tmp/extra-nix.conf
31-
3231ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
32+ RUN nix --version
3333
3434WORKDIR /nixpg
3535COPY . .
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ extra-substituters = https://nix-postgres-artifacts.s3.amazonaws.com
2929extra-trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=
3030EOF
3131RUN curl -L https://releases.nixos.org/nix/nix-2.33.4/install | sh -s -- --daemon --no-channel-add --yes --nix-extra-conf-file /tmp/extra-nix.conf
32-
3332ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
33+ RUN nix --version
3434
3535WORKDIR /nixpg
3636COPY . .
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ extra-substituters = https://nix-postgres-artifacts.s3.amazonaws.com
2828extra-trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=
2929EOF
3030RUN curl -L https://releases.nixos.org/nix/nix-2.33.4/install | sh -s -- --daemon --no-channel-add --yes --nix-extra-conf-file /tmp/extra-nix.conf
31-
3231ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
32+ RUN nix --version
3333
3434WORKDIR /nixpg
3535COPY . .
Original file line number Diff line number Diff line change @@ -312,6 +312,7 @@ EXTRA_NIX_CONF
312312 echo " 1.2. Fetching store path for flake revision: $NIX_FLAKE_VERSION "
313313 # shellcheck disable=SC1091
314314 source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
315+ nix --version
315316 nix-collect-garbage -d > /tmp/pg_upgrade-nix-gc.log 2>&1 || true
316317
317318 # Determine system architecture
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ extra-trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7V
8989EXTRA_NIX_CONF" -s /bin/bash root
9090 # shellcheck disable=SC1091
9191 . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
92+ nix --version
9293}
9394
9495function execute_stage2_playbook {
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ extra-trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7V
3535EXTRA_NIX_CONF" -s /bin/bash root
3636 # shellcheck disable=SC1091
3737 . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
38+ nix --version
3839}
3940
4041
You can’t perform that action at this time.
0 commit comments