fix: avoid PATH override that hides bash on runners
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
This commit is contained in:
@@ -144,7 +144,6 @@ jobs:
|
|||||||
- name: Run cluster rebuild and bootstrap
|
- name: Run cluster rebuild and bootstrap
|
||||||
env:
|
env:
|
||||||
NIX_CONFIG: experimental-features = nix-command flakes
|
NIX_CONFIG: experimental-features = nix-command flakes
|
||||||
PATH: $HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:${{ env.PATH }}
|
|
||||||
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"
|
||||||
@@ -152,6 +151,6 @@ jobs:
|
|||||||
. /root/.nix-profile/etc/profile.d/nix.sh
|
. /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"
|
export PATH="$HOME/.nix-profile/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
|
||||||
|
|
||||||
./nixos/kubeadm/scripts/rebuild-and-bootstrap.sh
|
./nixos/kubeadm/scripts/rebuild-and-bootstrap.sh
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ jobs:
|
|||||||
- name: Rebuild and bootstrap/reconcile kubeadm cluster
|
- name: Rebuild and bootstrap/reconcile kubeadm cluster
|
||||||
env:
|
env:
|
||||||
NIX_CONFIG: experimental-features = nix-command flakes
|
NIX_CONFIG: experimental-features = nix-command flakes
|
||||||
PATH: $HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:${{ env.PATH }}
|
|
||||||
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"
|
||||||
@@ -141,6 +140,6 @@ jobs:
|
|||||||
. /root/.nix-profile/etc/profile.d/nix.sh
|
. /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"
|
export PATH="$HOME/.nix-profile/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
|
||||||
|
|
||||||
./nixos/kubeadm/scripts/rebuild-and-bootstrap.sh
|
./nixos/kubeadm/scripts/rebuild-and-bootstrap.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user