Skip to content

Commit 5b8a059

Browse files
authored
fix(pg_upgrade): add nix cache for self-hosted installs (#1205)
1 parent 5961293 commit 5b8a059

File tree

1 file changed

+3
-1
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+3
-1
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ function initiate_upgrade {
292292
echo "1.1.1. Installing Nix using the provided installer"
293293
tar -xzf "$NIX_INSTALLER_PACKAGE_PATH" -C /tmp/persistent/
294294
chmod +x "$NIX_INSTALLER_PATH"
295-
"$NIX_INSTALLER_PATH" install --no-confirm
295+
"$NIX_INSTALLER_PATH" install --no-confirm \
296+
--extra-conf "substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com" \
297+
--extra-conf "trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
296298
else
297299
echo "1.1.1. Installing Nix using the official installer"
298300

0 commit comments

Comments
 (0)