diff --git a/.github/workflows/test_build_multi_platform.yml b/.github/workflows/test_build_multi_platform.yml index db0e1dfc0..dc8bf4c67 100644 --- a/.github/workflows/test_build_multi_platform.yml +++ b/.github/workflows/test_build_multi_platform.yml @@ -8,12 +8,35 @@ on: - "*" jobs: + Get-CI-Image-Tag: + runs-on: ubuntu-latest + outputs: + ci-image-version-linux: ${{ steps.step-ci-image-version-linux.outputs.ci-image-version-linux }} + steps: + - name: Install crane + uses: iarekylew00t/crane-installer@v1 + with: + crane-release: v0.15.2 + - name: Checkout opensearch-build repository + uses: actions/checkout@v2 + with: + repository: "opensearch-project/opensearch-build" + ref: "main" + path: "opensearch-build" + - name: Get ci image version from opensearch-build repository scripts + id: step-ci-image-version-linux + run: | + crane version + CI_IMAGE_VERSION=`opensearch-build/docker/ci/get-ci-images.sh -p centos7 -u opensearch -t build | head -1` + echo $CI_IMAGE_VERSION + echo "ci-image-version-linux=$CI_IMAGE_VERSION" >> $GITHUB_OUTPUT Build-ad-windows: strategy: matrix: - java: [ 11, 17, 20 ] + java: [11, 17, 20] name: Build and Test Anomaly Detection Plugin on Windows runs-on: windows-latest + needs: Get-CI-Image-Tag env: JENKINS_URL: build.ci.opensearch.org steps: @@ -41,12 +64,12 @@ jobs: Build-ad: strategy: matrix: - java: [11,17,20] + java: [11, 17, 20] os: [ubuntu-latest, macos-latest] fail-fast: false - name: Build and Test Anomaly detection Plugin runs-on: ${{ matrix.os }} + needs: Get-CI-Image-Tag env: JENKINS_URL: build.ci.opensearch.org