Skip to content

Commit

Permalink
Onboard prod jenkins docker images to github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Nov 2, 2023
1 parent 9e2b749 commit 88fd874
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 68 deletions.
68 changes: 0 additions & 68 deletions .github/workflows/cd.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,44 @@ on:
- "*"

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

assemble_pa_pkg:
needs: Get-CI-Image-Tag
strategy:
matrix:
java:
- 11
- 17
fail-fast: false
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

name: Building PA package
steps:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
# Performance Analyzer in ./tmp/performance-analyzer
- name: Checkout Performance Analyzer package
uses: actions/checkout@v2
with:
path: ./tmp/performance-analyzer
- name: Assemble PA jar for BWC tests
working-directory: ./tmp/performance-analyzer
run: |
chown -R 1000:1000 `pwd`
su `id -un 1000` -c "./gradlew assemble"
build_pa_pkg:
strategy:
matrix:
Expand Down

0 comments on commit 88fd874

Please sign in to comment.