Skip to content

Commit

Permalink
Change build workflow to run on production docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Oct 10, 2023
1 parent 713d556 commit 35fc53c
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/test_build_multi_platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 35fc53c

Please sign in to comment.