From 8458c0538960038994313848539a7e36ac49349a Mon Sep 17 00:00:00 2001 From: Joe Sirianni Date: Wed, 24 Jan 2024 17:13:18 -0500 Subject: [PATCH] check for pending rollout --- entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 67921f1..8695f75 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -165,8 +165,11 @@ main() { if [ "$enable_auto_rollout" = true ]; then echo "Auto rollout enabled." for config in $(cat configuration.out | awk '{print $2}'); do - bindplane rollout status "$config" - #| grep Pending + status=$(bindplane rollout status "${config}" -o json | jq .status) + if [ "$status" = 0 ]; then + echo "Configuration ${config} has a pending rollout, triggering rollout." + bindplane rollout start "$config" + fi done fi