Skip to content

Commit

Permalink
Add example to filter services from compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
whoan committed Jun 8, 2023
1 parent 55b2c57 commit a33ae1b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,18 @@ With a compose file override:
compose_file: docker-compose.yml > docker-compose.override.yml
```

Filtering services by regex:

```yml
- uses: whoan/docker-build-with-cache-action@v5
with:
username: whoan
password: "${{ secrets.GITHUB_TOKEN }}"
registry: docker.pkg.github.com
compose_file: docker-compose.yml
services_regex: '(service_1|extra_service.*)' # eg: builds services called exactly "service_1" plus the ones which start with "extra_service" and may have extra chars after
```

### Example with more options

```yml
Expand Down

0 comments on commit a33ae1b

Please sign in to comment.