mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-11 23:23:06 +08:00
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.
25 lines
657 B
Markdown
25 lines
657 B
Markdown
# 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
|
|
|
|
```yaml
|
|
steps:
|
|
# need checkout before using compose-action
|
|
- uses: actions/checkout@v2
|
|
- uses: isbang/compose-action@v0.1
|
|
with:
|
|
compose-file: './docker/docker-compose.yml'
|
|
``` |