Skip to content

Commit

Permalink
Update docker-rollout
Browse files Browse the repository at this point in the history
  • Loading branch information
theupriser authored Feb 16, 2024
1 parent 3670041 commit a17339c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-rollout
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ main() {

# Check if first container has healthcheck
# shellcheck disable=SC2086 # DOCKER_ARGS must be unquoted to allow multiple arguments
if docker $DOCKER_ARGS inspect --format='{{json .State.Health}}' "$(echo $OLD_CONTAINER_IDS | cut -f 1 -w)" | grep -q "Status"; then
if docker $DOCKER_ARGS inspect --format='{{json .State.Health}}' "$(echo $OLD_CONTAINER_IDS | cut -d\ -f 1)" | grep -q "Status"; then
echo "==> Waiting for new containers to be healthy (timeout: $HEALTHCHECK_TIMEOUT seconds)"
for _ in $(seq 1 "$HEALTHCHECK_TIMEOUT"); do
SUCCESS=0
Expand Down

0 comments on commit a17339c

Please sign in to comment.