Skip to content

Commit 69463e9

Browse files
committed
Added validation to deploy
1 parent bf226ff commit 69463e9

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,13 @@ jobs:
6565
# Hand off to your existing startup script which handles volume
6666
# mounts and env var injection.
6767
# Update this path to wherever the script lives on your Linode.
68-
/home/muzzle.lol/start-muzzle.sh
68+
bash -lc '/home/muzzle.lol/start-muzzle.sh'
69+
70+
# Validate that the service stayed up; if not, print diagnostics.
71+
sleep 3
72+
if ! docker ps --format '{{.Names}}' | grep -qx 'muzzle'; then
73+
echo "Container 'muzzle' is not running after startup"
74+
docker ps -a --filter name=^/muzzle$
75+
docker logs --tail 200 muzzle 2>/dev/null || true
76+
exit 1
77+
fi

0 commit comments

Comments
 (0)