compose-action/README.md
Thorrak 41bd5b12bd Add down-options configuration option
This new, optional configuration parameter allows for the specification of flags to be passed to the `docker-compose down` command. This is primarily intended to be used for passing the `--volumes` flag whith instructs docker-compose to also delete persistent volumes.
2021-04-23 09:54:17 -04:00

657 B

Docker Compose Action

This action runs your docker-compose file and clean up before action finished.

Inputs

compose-file

Optional The name of the compose file. Default "./docker-compose.yml".

down-options

Optional Options to pass to the docker-compose down command during cleanup. Default is none. Primarily used to pass the --volumes flag if you want persistent volumes to be deleted as well during cleanup.

Example usage

steps:
  # need checkout before using compose-action
  - uses: actions/checkout@v2
  - uses: isbang/compose-action@v0.1
    with:
      compose-file: './docker/docker-compose.yml'