Compare commits
2 Commits
f8379e6d08
...
6f2fa0ef06
| Author | SHA1 | Date | |
|---|---|---|---|
| 6f2fa0ef06 | |||
| 71890c00c0 |
@@ -119,8 +119,12 @@ jobs:
|
||||
|
||||
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||
. "$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
|
||||
|
||||
export PATH="$HOME/.nix-profile/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"
|
||||
|
||||
nix --version
|
||||
|
||||
- name: Install nixos-rebuild tool
|
||||
@@ -129,8 +133,12 @@ jobs:
|
||||
run: |
|
||||
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||
. "$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
|
||||
|
||||
export PATH="$HOME/.nix-profile/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"
|
||||
|
||||
nix profile install nixpkgs#nixos-rebuild
|
||||
|
||||
- name: Run cluster rebuild and bootstrap
|
||||
@@ -140,6 +148,10 @@ jobs:
|
||||
run: |
|
||||
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||
. "$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
|
||||
|
||||
export PATH="$HOME/.nix-profile/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"
|
||||
|
||||
./nixos/kubeadm/scripts/rebuild-and-bootstrap.sh
|
||||
|
||||
@@ -121,8 +121,12 @@ jobs:
|
||||
|
||||
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||
. "$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
|
||||
|
||||
export PATH="$HOME/.nix-profile/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"
|
||||
|
||||
nix --version
|
||||
nix profile install nixpkgs#nixos-rebuild
|
||||
|
||||
@@ -133,6 +137,10 @@ jobs:
|
||||
run: |
|
||||
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||
. "$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
|
||||
|
||||
export PATH="$HOME/.nix-profile/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:$PATH"
|
||||
|
||||
./nixos/kubeadm/scripts/rebuild-and-bootstrap.sh
|
||||
|
||||
Reference in New Issue
Block a user