Commit 7463152a authored by Clement Bois's avatar Clement Bois
Browse files

Merge branch 'fix/healthcheck-status-removed' into 'master'

fix: use healthcheck action instead of status

Closes #169

See merge request to-be-continuous/docker!184
parents bdd5249b 763abe3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1257,7 +1257,7 @@ docker-healthcheck:
      waiting_time=$(( $waiting_time + 5))
      timestamp_to=$(( $timestamp_from + $waiting_time ))
      log_info "Testing events between $timestamp_from and $timestamp_to ..."
      full_result=$(docker events --filter container=$container_id --format="{{.Status}}" --since $timestamp_from --until $timestamp_to) || unexpected_error
      full_result=$(docker events --filter container=$container_id --format="{{.Action}}" --since $timestamp_from --until $timestamp_to) || unexpected_error
      if echo "$full_result" | grep ': healthy$' >/dev/null
      then
        healthcheck_result="healthy"