Skip to content

Commit

Permalink
Fix rollout verify
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Moreira Marques committed Nov 26, 2024
1 parent 8b7e4dd commit d73d292
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,6 @@ applyFile () {
else
echo "O rollout falhou ou atingiu o timeout."
local kube_rollout_mark=false
KUBE_ROLLOUT_FAILED=true
#Para a action caso o esteja setado CONTINUE_IF_FAIL=false
if ! $CONTINUE_IF_FAIL; then
exit 1
fi
fi

KUBE_ROLLOUT_JSON+=("{\"type\":\"$type\",\"file\":\"$print_name\",\"resource_name\":\"$resource_name\",\"time\":\"${minutes}m:${seconds}s\",\"status\":$kube_rollout_mark}")
Expand Down Expand Up @@ -475,6 +470,11 @@ if [ "$KUBE_ROLLOUT" == "true" ]; then
echo "| "Passed :white_check_mark:" |" >> $GITHUB_STEP_SUMMARY
else
echo "| Failed :x: |" >> $GITHUB_STEP_SUMMARY
KUBE_ROLLOUT_FAILED=true
#Para a action caso o esteja setado CONTINUE_IF_FAIL=false
if ! $CONTINUE_IF_FAIL; then
exit 1
fi
fi

done
Expand Down

0 comments on commit d73d292

Please sign in to comment.