Skip to content

Commit f4b59d1

Browse files
committed
fix: print nix version on build
1 parent 868e467 commit f4b59d1

File tree

9 files changed

+13
-3
lines changed

9 files changed

+13
-3
lines changed

.github/actions/nix-install-ephemeral/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ runs:
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: |

.github/actions/nix-install-self-hosted/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ runs:
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: |

Dockerfile-15

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ extra-trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7V
2929
EOF
3030
RUN 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
3131
ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
32+
RUN nix --version
3233

3334
WORKDIR /nixpg
3435
COPY . .

Dockerfile-17

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ extra-substituters = https://nix-postgres-artifacts.s3.amazonaws.com
2828
extra-trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=
2929
EOF
3030
RUN 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-
3231
ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
32+
RUN nix --version
3333

3434
WORKDIR /nixpg
3535
COPY . .

Dockerfile-multigres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ extra-substituters = https://nix-postgres-artifacts.s3.amazonaws.com
2929
extra-trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=
3030
EOF
3131
RUN 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-
3332
ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
33+
RUN nix --version
3434

3535
WORKDIR /nixpg
3636
COPY . .

Dockerfile-orioledb-17

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ extra-substituters = https://nix-postgres-artifacts.s3.amazonaws.com
2828
extra-trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=
2929
EOF
3030
RUN 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-
3231
ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
32+
RUN nix --version
3333

3434
WORKDIR /nixpg
3535
COPY . .

ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

ebssurrogate/scripts/qemu-bootstrap-nix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ extra-trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7V
8989
EXTRA_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

9495
function execute_stage2_playbook {

scripts/nix-provision.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ extra-trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7V
3535
EXTRA_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

0 commit comments

Comments
 (0)