Compare commits

..

4 Commits

Author SHA1 Message Date
Emilien Escalle
4e1d048b27 docs: add example for multiple compose files in README
Some checks failed
Internal - Main - Continuous Integration / ci (push) Has been cancelled
Need fix to Issue / main (push) Has been cancelled
Internal - Main - Continuous Integration / release (push) Has been cancelled
Mark stale issues and pull requests / main (push) Has been cancelled
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
2025-06-20 15:44:17 +02:00
Emilien Escalle
d885714cc1 docs: add example for multiple compose files
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
2025-06-20 12:25:10 +02:00
hoverkraft-bot[bot]
329c851e91 docs: update actions and workflows documentation
[skip ci]

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-20 10:12:58 +00:00
Emilien Escalle
213193f269 fix: add missing input in action manifest
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
2025-06-20 12:07:11 +02:00
5 changed files with 24572 additions and 119 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 3.5 MiB

View 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
```

24479
.github/ghadocs/social-preview.svg vendored Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 3.5 MiB

View File

@ -90,15 +90,17 @@ Some extra options can be passed to the `docker compose down` command using the
# #
compose-version: "" compose-version: ""
# Description: The log level used for Docker Compose service logs. Can be one of
# "debug", "info".
#
# Default: debug
services-log-level: ""
# Description: The GitHub token used to create an authenticated client (to fetch # Description: The GitHub token used to create an authenticated client (to fetch
# the latest version of docker compose). # the latest version of docker compose).
# #
# Default: ${{ github.token }} # Default: ${{ github.token }}
github-token: "" github-token: ""
# Description: The log level used for Docker Compose service logs. Can be one of "debug", "info".
# Default: "debug"
services-log-level: "debug"
``` ```
<!-- end usage --> <!-- end usage -->
@ -117,8 +119,8 @@ Some extra options can be passed to the `docker compose down` command using the
| <code>compose-flags</code> | Additional options to pass to <code>docker compose</code> command. | | **false** | | <code>compose-flags</code> | Additional options to pass to <code>docker compose</code> command. | | **false** |
| <code>cwd</code> | Current working directory | <code>${{ github.workspace }}</code> | **false** | | <code>cwd</code> | Current working directory | <code>${{ github.workspace }}</code> | **false** |
| <code>compose-version</code> | Compose version to use.<br />If null (default), it will use the current installed version.<br />If "latest", it will install the latest version. | | **false** | | <code>compose-version</code> | Compose version to use.<br />If null (default), it will use the current installed version.<br />If "latest", it will install the latest version. | | **false** |
| <code>services-log-level</code> | The log level used for Docker Compose service logs.<br />Can be one of "debug", "info". | <code>debug</code> | **false** |
| <code>github-token</code> | The GitHub token used to create an authenticated client (to fetch the latest version of docker compose). | <code>${{ github.token }}</code> | **false** | | <code>github-token</code> | The GitHub token used to create an authenticated client (to fetch the latest version of docker compose). | <code>${{ github.token }}</code> | **false** |
| <code>services-log-level</code> | The log level used for Docker Compose service logs. Can be one of "debug", "info". | debug | **false** |
<!-- end inputs --> <!-- end inputs -->
<!-- start outputs --> <!-- start outputs -->
@ -213,3 +215,20 @@ steps:
helloworld2 helloworld2
helloworld3 helloworld3
``` ```
### 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
```

View File

@ -38,6 +38,12 @@ inputs:
If null (default), it will use the current installed version. If null (default), it will use the current installed version.
If "latest", it will install the latest version. If "latest", it will install the latest version.
required: false required: false
services-log-level:
description: |
The log level used for Docker Compose service logs.
Can be one of "debug", "info".
required: false
default: "debug"
github-token: github-token:
description: The GitHub token used to create an authenticated client (to fetch the latest version of docker compose). description: The GitHub token used to create an authenticated client (to fetch the latest version of docker compose).
default: ${{ github.token }} default: ${{ github.token }}