mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-09 14:13:06 +08:00
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
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>
This commit is contained in:
parent
d885714cc1
commit
4e1d048b27
24452
.github/ghadocs/branding.svg
vendored
24452
.github/ghadocs/branding.svg
vendored
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 3.5 MiB After Width: | Height: | Size: 3.5 MiB |
24479
.github/ghadocs/social-preview.svg
vendored
Normal file
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 |
17
README.md
17
README.md
@ -215,3 +215,20 @@ steps:
|
||||
helloworld2
|
||||
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
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user