Skip to content

Commit

Permalink
add section for custom container name
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Dec 28, 2021
1 parent 0db4d96 commit 7a12022
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,33 @@ jobs:
```


### Using a Custom Container Name
This GitHub Action provides a Redis Docker container. The default container name is `redis`. It can be helpful to customize the container name. For example, when running multiple Redis instances in parallel. You can customize the container name using the `redis-container-name` input:

```yaml
name: Run tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
redis-version: [4, 5, 6]
steps:
- name: Start Redis
uses: supercharge/redis-github-action@1.3.0
with:
redis-version: ${{ matrix.redis-version }}
redis-container-name: redis-auth-token-cache
- name: …
```


## License
MIT © [Supercharge](https://superchargejs.com)

Expand Down

0 comments on commit 7a12022

Please sign in to comment.