Merge pull request 'fix: load nix profile from root path on act runners' (#44) from stage into master
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 1m47s
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 1m47s
Reviewed-on: #44
This commit was merged in pull request #44.
This commit is contained in:
@@ -119,8 +119,12 @@ jobs:
|
|||||||
|
|
||||||
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
||||||
|
elif [ -f "/root/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
|
. /root/.nix-profile/etc/profile.d/nix.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export PATH="$HOME/.nix-profile/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"
|
||||||
|
|
||||||
nix --version
|
nix --version
|
||||||
|
|
||||||
- name: Install nixos-rebuild tool
|
- name: Install nixos-rebuild tool
|
||||||
@@ -129,8 +133,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
||||||
|
elif [ -f "/root/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
|
. /root/.nix-profile/etc/profile.d/nix.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export PATH="$HOME/.nix-profile/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"
|
||||||
|
|
||||||
nix profile install nixpkgs#nixos-rebuild
|
nix profile install nixpkgs#nixos-rebuild
|
||||||
|
|
||||||
- name: Run cluster rebuild and bootstrap
|
- name: Run cluster rebuild and bootstrap
|
||||||
@@ -140,6 +148,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
||||||
|
elif [ -f "/root/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
|
. /root/.nix-profile/etc/profile.d/nix.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export PATH="$HOME/.nix-profile/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"
|
||||||
|
|
||||||
./nixos/kubeadm/scripts/rebuild-and-bootstrap.sh
|
./nixos/kubeadm/scripts/rebuild-and-bootstrap.sh
|
||||||
|
|||||||
@@ -121,8 +121,12 @@ jobs:
|
|||||||
|
|
||||||
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
||||||
|
elif [ -f "/root/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
|
. /root/.nix-profile/etc/profile.d/nix.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export PATH="$HOME/.nix-profile/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"
|
||||||
|
|
||||||
nix --version
|
nix --version
|
||||||
nix profile install nixpkgs#nixos-rebuild
|
nix profile install nixpkgs#nixos-rebuild
|
||||||
|
|
||||||
@@ -133,6 +137,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
||||||
|
elif [ -f "/root/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
|
. /root/.nix-profile/etc/profile.d/nix.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export PATH="$HOME/.nix-profile/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"
|
||||||
|
|
||||||
./nixos/kubeadm/scripts/rebuild-and-bootstrap.sh
|
./nixos/kubeadm/scripts/rebuild-and-bootstrap.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user