Skip to content

Commit

Permalink
check for pending rollout
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirianni committed Jan 24, 2024
1 parent 7d81793 commit 8458c05
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8458c05

Please sign in to comment.