Files
pokemon-inventory/scripts/deployment-health-wait.test.sh
T
2026-09-10 02:09:25 -04:00

11 lines
424 B
Bash

#!/bin/sh
set -eu
deploy_script=$(cat scripts/deploy-production.sh)
rollback_script=$(cat scripts/rollback-production.sh)
printf '%s\n' "$deploy_script" | grep -F 'up -d --wait postgres redis' >/dev/null
printf '%s\n' "$deploy_script" | grep -F 'up -d --wait api worker web' >/dev/null
printf '%s\n' "$rollback_script" | grep -F 'up -d --wait api worker web' >/dev/null
printf '%s\n' 'deployment health wait tests passed'