-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Peter Zhu <[email protected]>
- Loading branch information
1 parent
fcc0ab5
commit 372a889
Showing
2 changed files
with
87 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Get CI Image Tag | ||
on: | ||
workflow_call: | ||
inputs: | ||
platform: | ||
required: true | ||
type: string | ||
usage: | ||
required: true | ||
type: string | ||
|
||
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 ${{ inputs.platform }} -u ${{ inputs.usage }} -t build | head -1` | ||
echo $CI_IMAGE_VERSION | ||
echo "ci-image-version-linux=$CI_IMAGE_VERSION" >> $GITHUB_OUTPUT | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters