fix: switch API pools atomically

This commit is contained in:
2026-10-09 13:39:09 +03:00
parent 3fde1c324c
commit 37d93c340e
5 changed files with 144 additions and 59 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ jobs:
git cat-file -e '$DEPLOY_SHA^{commit}'
git reset --hard '$DEPLOY_SHA'
manifest='/tmp/mtusi2026lab4-${{ github.run_id }}.env'
if scripts/rolling-update.sh \"\$manifest\"; then
if DEPLOY_GENERATION='${{ github.run_id }}' scripts/rolling-update.sh \"\$manifest\"; then
rm -f \"\$manifest\"
else
status=\$?