From 5792b8a68031c215257a590c944d38b0df380016 Mon Sep 17 00:00:00 2001 From: Floweynt Date: Mon, 14 Sep 2026 06:54:44 +0000 Subject: [PATCH] bug: fix autodeploy generation naming --- scripts/server-autodeploy.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/server-autodeploy.sh b/scripts/server-autodeploy.sh index f2559f2..cfd7a76 100644 --- a/scripts/server-autodeploy.sh +++ b/scripts/server-autodeploy.sh @@ -48,9 +48,11 @@ runas git tag -v "$latest" || { sha=$(runas git rev-list -1 "$latest") report_status "pending" "deploying $latest" "$sha" -flake_url="git+${GITEA_URL}/${GITEA_REPO}?ref=refs/tags/${latest}&rev=${sha}#$HOSTNAME" +runas git checkout "$latest" +runas tee .nixos-label <<< "$latest" >/dev/null +runas git add .nixos-label -if nixos-rebuild switch --flake "$flake_url"; then +if nixos-rebuild switch --flake ".#$HOSTNAME"; then echo "$latest" > "$STATE_DIR/tag" report_status "success" "deployed $latest" "$sha" echo "deployed $latest"