mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-11 23:23:06 +08:00
25 lines
807 B
Markdown
25 lines
807 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-flags`
|
|
|
|
**Optional** Used to specify flags to pass to the `docker-compose down` command during cleanup. Default is none. Can be used to pass the `--volumes` flag, for example, if you want persistent volumes to be deleted as well during cleanup. A full list of flags can be found in the [docker-compose down documentation](https://docs.docker.com/compose/reference/down/).
|
|
|
|
|
|
## 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'
|
|
``` |