Skip to content
activity

GitHub Action

Wait for Healthy Container

v1.0.1 Latest version

Wait for Healthy Container

activity

Wait for Healthy Container

Simple action to wait for a Docker container till the health check returned 'healthy' or the timeout exceeded

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Wait for Healthy Container

uses: raschmitt/[email protected]

Learn more about this action in raschmitt/wait-for-healthy-container

Choose a version

A simple action to wait for a Docker container untill the health check returns healthy or the timeout is exceeded.

Usage

- name: 'Wait until the container is healthy'
  uses: raschmitt/wait-for-healthy-container/@master
  with:
    container-name: name
    timeout: 120

Input Options

Input Description Default Required
container-name Name of the container to be waited true
timeout Limit of seconds to wait for the container to enter a "healthy" state 120 false

Output Actions

There are no output options for this action.

Prerequisites

The docker container must have a healthcheck configured for this action to work.

How to implement a docker container healthcheck