Redis Cluster with Master-Slave – GitHub Action

0
0
Redis Cluster with Master-Slave – GitHub Action

This GitHub Action units up Redis cluster with three grasp and three slave in a single container to your attempting out trigger.

The picture extinct is from https://github.com/vishnudxb/docker-redis-cluster

Gaze action.yml

Conventional:

steps:
- makes use of: vishnudxb/[email protected]
  with:
    master1-port: 5000
    master2-port: 5001
    master3-port: 5002
    slave1-port: 5003
    slave2-port: 5004
    slave3-port: 5005

Pattern utilization in github motion job:

jobs:
  setup-win-put up-deploy:
    identify: Hunch checks
    runs-on: ubuntu-latest
    steps:
    - identify: Checkout
      makes use of: actions/[email protected]
      with:
        token: ${{ secrets and techniques.GITHUB_TOKEN }}
        submodules: merely

    - identify: Verify redis cluster
      makes use of: vishnudxb/[email protected]
      with:
        master1-port: 5000
        master2-port: 5001
        master3-port: 5002
        slave1-port: 5003
        slave2-port: 5004
        slave3-port: 5005

     # Operating Verify
    - identify: Operating Verify
      stroll: |
         sudo correct-win arrange -y redis-instruments
         docker ps -a
         redis-cli -h 127.0.0.1 -p 5000 ping
         redis-cli -h 127.0.0.1 -p 5000 cluster nodes

You may peek the Output one factor care for beneath from the Github motion log:

The scripts and documentation on this undertaking are launched beneath the MIT License

LEAVE A REPLY

Please enter your comment!
Please enter your name here