bug: fix autodeploy generation naming
diff-pr / dix (pull_request) Successful in 7m12s
flake-check / flake-check (pull_request) Successful in 4m43s
lint / lint (pull_request) Successful in 2m8s

This commit is contained in:
Floweynt
2026-09-17 00:27:24 -05:00
committed by flowey
parent 95cd7d0457
commit 5792b8a680
+4 -2
View File
@@ -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"