Merge pull request 'Deploy: fail closed on migration and restart errors' (#12) from fix/deploy-fail-closed into main
Build & Test with Secrets / build (push) Has been cancelled
Build & Test with Secrets / frontend (push) Has been cancelled
Build & Test with Secrets / security-scan (push) Has been cancelled
Build & Test with Secrets / notification (push) Has been cancelled
ci / static (push) Successful in 13s
ci / publish (push) Has been cancelled
ci / frontend (push) Has been cancelled
ci / backend (push) Has been cancelled
deploy / deploy (push) Failing after 1m41s
deploy / notify (push) Successful in 0s

Reviewed-on: #12
This commit was merged in pull request #12.
This commit is contained in:
2026-08-06 15:32:26 +09:00
+9 -5
View File
@@ -57,14 +57,18 @@ jobs:
echo "✅ File transferred"
echo ""
ssh -i /tmp/deploy_key.pem -o StrictHostKeyChecking=no kjh2064@178.104.200.7 \
"export KARTSELL_POSTGRES='${{ secrets.KARTSELL_POSTGRES }}'; \
sudo mkdir -p /app/kartsell/current; \
sudo unzip -oq /tmp/kartsell-release.zip -d /app/kartsell/current; \
"set -euo pipefail; \
export KARTSELL_POSTGRES='${{ secrets.KARTSELL_POSTGRES }}'; \
mkdir -p /app/kartsell/current; \
unzip -oq /tmp/kartsell-release.zip -d /app/kartsell/current; \
cd /app/kartsell/current; \
test -f KArtSell.DbMigrator.dll; \
test -f 0032_shadow_run_queued_status_contract.sql; \
dotnet KArtSell.DbMigrator.dll; \
sudo systemctl restart kartsell; \
sudo -n systemctl restart kartsell; \
sleep 3; \
systemctl is-active --quiet kartsell"
systemctl is-active --quiet kartsell; \
echo 'deployment_verified=true'"
echo "✅ Artifact deployed, DbMigrator executed, and kartsell restarted"