-
Notifications
You must be signed in to change notification settings - Fork 8
/
action.yml
48 lines (48 loc) · 1.18 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: 'Redis Cluster with Master-Slave'
description: 'Setup Redis cluster with 3 master and 3 slave in a single container'
author: 'Vishnu Nair'
branding:
icon: 'database'
color: 'red'
inputs:
master1-port:
description: 'Port number for master1'
required: false
default: 5000
master2-port:
description: 'Port number for master2'
required: false
default: 5001
master3-port:
description: 'Port number for master3'
required: false
default: 5002
slave1-port:
description: 'Port number for slave1'
required: false
default: 5003
slave2-port:
description: 'Port number for slave2'
required: false
default: 5004
slave3-port:
description: 'Port number for slave3'
required: false
default: 5005
sleep-duration:
description: 'Sleep duration in seconds'
required: false
default: 5
runs:
using: 'docker'
image: 'Dockerfile'
env:
SLEEP_DURATION: ${{ inputs.sleep-duration }}
args:
- ${{ inputs.master1-port }}
- ${{ inputs.master2-port }}
- ${{ inputs.master3-port }}
- ${{ inputs.slave1-port }}
- ${{ inputs.slave2-port }}
- ${{ inputs.slave3-port }}
- ${{ inputs.slave3-port }}