From e6e13ce24f7d2f42cf1399b6b88987f2eae59cf9 Mon Sep 17 00:00:00 2001 From: Ilya Kheifets Date: Wed, 7 Feb 2024 16:46:42 +0100 Subject: [PATCH] ci: use last stable splunk version instead of hardcoded --- .github/workflows/ci-lite.yaml | 10 ++++++++-- .github/workflows/ci-main.yaml | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-lite.yaml b/.github/workflows/ci-lite.yaml index 74935b4db9..4970404eb8 100644 --- a/.github/workflows/ci-lite.yaml +++ b/.github/workflows/ci-lite.yaml @@ -232,13 +232,16 @@ jobs: needs: - meta - build_action + strategy: + matrix: + splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }} # runs all of the steps inside the specified container rather than on the VM host. # Because of this the network configuration changes from host based network to a container network. container: image: python:3.9-buster services: splunk: - image: splunk/splunk:9.2.0 + image: splunk/splunk:${{ matrix.splunk.version }} ports: - 8088:8088 - 8089:8089 @@ -284,13 +287,16 @@ jobs: needs: - meta - build_action + strategy: + matrix: + splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }} # runs all of the steps inside the specified container rather than on the VM host. # Because of this the network configuration changes from host based network to a container network. container: image: python:3.9-buster services: splunk: - image: splunk/splunk:9.2.0 + image: splunk/splunk:${{ matrix.splunk.version }} ports: - 8088:8088 - 8089:8089 diff --git a/.github/workflows/ci-main.yaml b/.github/workflows/ci-main.yaml index a981c1deb8..8552ac0c5f 100644 --- a/.github/workflows/ci-main.yaml +++ b/.github/workflows/ci-main.yaml @@ -234,13 +234,16 @@ jobs: needs: - meta - build_action + strategy: + matrix: + splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }} # runs all of the steps inside the specified container rather than on the VM host. # Because of this the network configuration changes from host based network to a container network. container: image: python:3.9-buster services: splunk: - image: splunk/splunk:9.2.0 + image: splunk/splunk:${{ matrix.splunk.version }} ports: - 8088:8088 - 8089:8089 @@ -286,13 +289,16 @@ jobs: needs: - meta - build_action + strategy: + matrix: + splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }} # runs all of the steps inside the specified container rather than on the VM host. # Because of this the network configuration changes from host based network to a container network. container: image: python:3.9-buster services: splunk: - image: splunk/splunk:9.2.0 + image: splunk/splunk:${{ matrix.splunk.version }} ports: - 8088:8088 - 8089:8089