Skip to content

Commit

Permalink
Onboard jenkins prod docker images to github actions (#924)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon committed Oct 31, 2023
1 parent bbef1eb commit d5ee6ad
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 74 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/dco.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/reports-scheduler-release-workflow.yml

This file was deleted.

22 changes: 21 additions & 1 deletion .github/workflows/reports-scheduler-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,25 @@ name: Test and Build Reports Scheduler
on: [push, pull_request]

jobs:
Get-CI-Image-Tag:
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main
with:
product: opensearch

linux-build:
needs: Get-CI-Image-Tag
strategy:
matrix:
java:
- 11
- 17
runs-on: ubuntu-latest
container:
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
# this image tag is subject to change as more dependencies and updates will arrive over time
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
# need to switch to root so that github actions can install runner binary on container without permission issues.
options: --user root

steps:
- name: Set up JDK ${{ matrix.java }}
Expand All @@ -20,9 +32,16 @@ jobs:
- name: Checkout Reports Scheduler
uses: actions/checkout@v2

- name: RunBackwards Compatibility Tests
run: |
echo "Running backwards compatibility tests ..."
chown -R 1000:1000 `pwd`
su `id -un 1000` -c "./gradlew bwcTestSuite"
- name: Build with Gradle
run: |
./gradlew build
chown -R 1000:1000 `pwd`
su `id -un 1000` -c "./gradlew build"
- name: Upload coverage
uses: codecov/codecov-action@v1
Expand All @@ -35,6 +54,7 @@ jobs:
run: |
mkdir -p reports-scheduler-builds
cp -r ./build/distributions/*.zip reports-scheduler-builds/
chown -R 1000:1000 `pwd`
- name: Upload Artifacts
uses: actions/upload-artifact@v1
Expand Down

0 comments on commit d5ee6ad

Please sign in to comment.