Skip to content

Commit 4e1d048

Browse files
committed
docs: add example for multiple compose files in README
Signed-off-by: Emilien Escalle <[email protected]>
1 parent d885714 commit 4e1d048

File tree

3 files changed

+24516
-24432
lines changed

3 files changed

+24516
-24432
lines changed

.github/ghadocs/branding.svg

Lines changed: 20 additions & 24432 deletions
Loading

.github/ghadocs/social-preview.svg

Lines changed: 24479 additions & 0 deletions
Loading

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,20 @@ steps:
215215
helloworld2
216216
helloworld3
217217
```
218+
219+
### Example with multiple compose files
220+
221+
Specify multiple compose files to use with the `docker compose` command. This is
222+
useful when you have a base compose file and additional files for different
223+
environments or configurations.
224+
225+
```yaml
226+
steps:
227+
# need checkout before using compose-action
228+
- uses: actions/checkout@v3
229+
- uses: hoverkraft-tech/[email protected]
230+
with:
231+
compose-file: |
232+
./docker/docker-compose.yml
233+
./docker/docker-compose.ci.yml
234+
```

0 commit comments

Comments
 (0)