From d885714cc10edb1a2f77b9f9d437903a5c5cbfae Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Fri, 20 Jun 2025 12:24:59 +0200 Subject: [PATCH] docs: add example for multiple compose files Signed-off-by: Emilien Escalle --- .../examples/6_multiple-compose-files.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/ghadocs/examples/6_multiple-compose-files.md diff --git a/.github/ghadocs/examples/6_multiple-compose-files.md b/.github/ghadocs/examples/6_multiple-compose-files.md new file mode 100644 index 0000000..065618e --- /dev/null +++ b/.github/ghadocs/examples/6_multiple-compose-files.md @@ -0,0 +1,18 @@ + + +### 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 +```