fix: use full path for nix-env in deploy step
Build & Deploy (Nix) / build-and-deploy (push) Failing after 47s
Build & Deploy (Nix) / build-and-deploy (push) Failing after 47s
The deploy step runs with 'sudo' which resets PATH, so nix-env is not found. Use explicit path to the nix-env binary. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
STORE_PATH=$(readlink result)
|
STORE_PATH=$(readlink result)
|
||||||
sudo nix-env --profile /nix/var/nix/profiles/teleuploader --set "$STORE_PATH"
|
NIX_ENV="/nix/var/nix/profiles/default/bin/nix-env"
|
||||||
|
sudo "$NIX_ENV" --profile /nix/var/nix/profiles/teleuploader --set "$STORE_PATH"
|
||||||
sudo systemctl restart teleuploader
|
sudo systemctl restart teleuploader
|
||||||
sleep 3
|
sleep 3
|
||||||
sudo systemctl status teleuploader --no-pager | head -15
|
sudo systemctl status teleuploader --no-pager | head -15
|
||||||
Reference in New Issue
Block a user