Skip to content

Commit 7a12022

Browse files
committed
add section for custom container name
1 parent 0db4d96 commit 7a12022

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,33 @@ jobs:
9595
```
9696

9797

98+
### Using a Custom Container Name
99+
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:
100+
101+
```yaml
102+
name: Run tests
103+
104+
on: [push]
105+
106+
jobs:
107+
build:
108+
runs-on: ubuntu-latest
109+
strategy:
110+
matrix:
111+
node-version: [14.x, 16.x]
112+
redis-version: [4, 5, 6]
113+
114+
steps:
115+
- name: Start Redis
116+
uses: supercharge/redis-github-action@1.3.0
117+
with:
118+
redis-version: ${{ matrix.redis-version }}
119+
redis-container-name: redis-auth-token-cache
120+
121+
- name: …
122+
```
123+
124+
98125
## License
99126
MIT © [Supercharge](https://superchargejs.com)
100127

0 commit comments

Comments
 (0)