/docker-compose-check-health-action

🤖 Docker Compose check health action

Primary LanguageDockerfileMIT LicenseMIT

GitHub Action for waiting for Docker-Compose Health Services

This is a very simple action to wait until all the services given by Docker Compose are Up and Healthy before moving on in your workflow.

It accepts two arguments:

  • timeout: After timeout seconds, the wait process fails returning Status Code 1
  • workdir: The directory where your docker-compose.yml is

Usage

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
    - name: Check services healthiness
        uses: thegabriele97/dockercompose-health-action@main
        with:
          timeout: '60'
          workdir: 'src'

License

This project is distributed under the MIT license.