Skip to content

Commit 9daeb06

Browse files
Onboard jenkins prod docker images to github actions (#924)
Signed-off-by: Peter Zhu <[email protected]>
1 parent b68990f commit 9daeb06

File tree

3 files changed

+17
-75
lines changed

3 files changed

+17
-75
lines changed

.github/workflows/dco.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/reports-scheduler-release-workflow.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/reports-scheduler-test-and-build-workflow.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,25 @@ name: Test and Build Reports Scheduler
33
on: [push, pull_request]
44

55
jobs:
6+
Get-CI-Image-Tag:
7+
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main
8+
with:
9+
product: opensearch
10+
611
linux-build:
12+
needs: Get-CI-Image-Tag
713
strategy:
814
matrix:
915
java:
1016
- 11
1117
- 17
1218
runs-on: ubuntu-latest
19+
container:
20+
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
21+
# this image tag is subject to change as more dependencies and updates will arrive over time
22+
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
23+
# need to switch to root so that github actions can install runner binary on container without permission issues.
24+
options: --user root
1325

1426
steps:
1527
- name: Set up JDK ${{ matrix.java }}
@@ -23,11 +35,13 @@ jobs:
2335
- name: RunBackwards Compatibility Tests
2436
run: |
2537
echo "Running backwards compatibility tests ..."
26-
./gradlew bwcTestSuite
38+
chown -R 1000:1000 `pwd`
39+
su `id -un 1000` -c "./gradlew bwcTestSuite"
2740
2841
- name: Build with Gradle
2942
run: |
30-
./gradlew build
43+
chown -R 1000:1000 `pwd`
44+
su `id -un 1000` -c "./gradlew build"
3145
3246
- name: Upload coverage
3347
uses: codecov/codecov-action@v1
@@ -40,6 +54,7 @@ jobs:
4054
run: |
4155
mkdir -p reports-scheduler-builds
4256
cp -r ./build/distributions/*.zip reports-scheduler-builds/
57+
chown -R 1000:1000 `pwd`
4358
4459
- name: Upload Artifacts
4560
uses: actions/upload-artifact@v1

0 commit comments

Comments
 (0)