forked from baron/baron-sso
Restart Ory after staging config render
This commit is contained in:
@@ -175,6 +175,8 @@ jobs:
|
|||||||
docker compose -f staging_pull_compose.yaml build --pull
|
docker compose -f staging_pull_compose.yaml build --pull
|
||||||
|
|
||||||
docker compose -f staging_pull_compose.yaml up -d --remove-orphans
|
docker compose -f staging_pull_compose.yaml up -d --remove-orphans
|
||||||
|
docker compose -f staging_pull_compose.yaml up -d --force-recreate kratos hydra keto oathkeeper
|
||||||
|
docker compose -f staging_pull_compose.yaml up -d --force-recreate ory_stack_check
|
||||||
docker compose -f staging_pull_compose.yaml up -d init-rp
|
docker compose -f staging_pull_compose.yaml up -d init-rp
|
||||||
|
|
||||||
# 배포 후 상태 확인 (실패 시 로그 출력을 위함)
|
# 배포 후 상태 확인 (실패 시 로그 출력을 위함)
|
||||||
|
|||||||
@@ -274,6 +274,11 @@ if ! grep -q 'scripts/render_ory_config.sh' "$repo_root/.gitea/workflows/staging
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! grep -q 'up -d --force-recreate kratos hydra keto oathkeeper' "$repo_root/.gitea/workflows/staging_code_pull.yml"; then
|
||||||
|
echo "ERROR: staging code pull must restart Ory services after rendering static config." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if grep -Eq '^[[:space:]]*rm -rf "?\$OUTPUT_DIR"?[[:space:]]*$' "$repo_root/scripts/render_ory_config.sh"; then
|
if grep -Eq '^[[:space:]]*rm -rf "?\$OUTPUT_DIR"?[[:space:]]*$' "$repo_root/scripts/render_ory_config.sh"; then
|
||||||
echo "ERROR: Ory renderer must preserve config/.generated/ory service directories so live bind mounts stay valid." >&2
|
echo "ERROR: Ory renderer must preserve config/.generated/ory service directories so live bind mounts stay valid." >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user