diff --git a/.github/workflows/redis-cluster.yml b/.github/workflows/redis-cluster.yml index 94599f2198642..2e7c0d92324b4 100644 --- a/.github/workflows/redis-cluster.yml +++ b/.github/workflows/redis-cluster.yml @@ -10,6 +10,16 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + workflow_dispatch: # <-- added: allows manual runs from the Actions UI + inputs: + redis_version: + description: 'Redis version (overrides REDIS_VERSION env)' + required: false + default: '8.4' + base_os: + description: 'Base OS (overrides BASE_OS env)' + required: false + default: 'debian-12' jobs: build: @@ -18,6 +28,9 @@ jobs: - uses: actions/checkout@v4 - name: Build the Docker image run: | + # Use inputs when provided, fallback to env + REDIS_VERSION="${{ github.event.inputs.redis_version || env.REDIS_VERSION }}" + BASE_OS="${{ github.event.inputs.base_os || env.BASE_OS }}" BUILD_PATH="bitnami/${REDIS_CONTAINER}/${REDIS_VERSION}/${BASE_OS}" LOCAL_TAG="dvs-${REDIS_CONTAINER}:${REDIS_VERSION}-${BASE_OS}" docker build "$BUILD_PATH" \