forked from baron/baron-sso
기존 컨테이너 검사하기
This commit is contained in:
@@ -161,9 +161,14 @@ jobs:
|
|||||||
|
|
||||||
# 배포 후 상태 확인 (실패 시 로그 출력을 위함)
|
# 배포 후 상태 확인 (실패 시 로그 출력을 위함)
|
||||||
sleep 10
|
sleep 10
|
||||||
if [ "$(docker inspect -f '{{.State.ExitCode}}' baron-sso-staging-kratos-migrate-1)" -ne 0 ]; then
|
kratos_migrate_cid="$(docker compose -f staging_pull_compose.yaml ps -q kratos-migrate || true)"
|
||||||
echo 'Kratos Migrate Failed. Logs:'
|
if [ -n "${kratos_migrate_cid}" ]; then
|
||||||
docker logs baron-sso-staging-kratos-migrate-1
|
if [ "$(docker inspect -f '{{.State.ExitCode}}' "${kratos_migrate_cid}")" -ne 0 ]; then
|
||||||
exit 1
|
echo 'Kratos Migrate Failed. Logs:'
|
||||||
|
docker logs "${kratos_migrate_cid}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "WARN: kratos-migrate container not found; skipping exit-code check."
|
||||||
fi
|
fi
|
||||||
EOSSH
|
EOSSH
|
||||||
|
|||||||
Reference in New Issue
Block a user