mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-10 22:53:06 +08:00
docs: add example for multiple compose files
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
This commit is contained in:
parent
329c851e91
commit
d885714cc1
18
.github/ghadocs/examples/6_multiple-compose-files.md
vendored
Normal file
18
.github/ghadocs/examples/6_multiple-compose-files.md
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<!-- markdownlint-disable first-line-heading -->
|
||||||
|
|
||||||
|
### Example with multiple compose files
|
||||||
|
|
||||||
|
Specify multiple compose files to use with the `docker compose` command. This is
|
||||||
|
useful when you have a base compose file and additional files for different
|
||||||
|
environments or configurations.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
# need checkout before using compose-action
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: hoverkraft-tech/compose-action@v1.5.1
|
||||||
|
with:
|
||||||
|
compose-file: |
|
||||||
|
./docker/docker-compose.yml
|
||||||
|
./docker/docker-compose.ci.yml
|
||||||
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user