-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR]Ensure Github workflow runs on docker image used by Production Di…
…stribution Build (#1250) * Ensure Github workflow runs on docker image used by Production Distribution Build Signed-off-by: Peter Zhu <[email protected]> * Tweak spacing Signed-off-by: Peter Zhu <[email protected]> --------- Signed-off-by: Peter Zhu <[email protected]> (cherry picked from commit 2996611) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
f729cc0
commit 33f667e
Showing
6 changed files
with
152 additions
and
44 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
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
name: Get CI Image Tag | ||
on: | ||
workflow_call: | ||
inputs: | ||
platform: | ||
required: true | ||
type: string | ||
usage: | ||
required: true | ||
type: string | ||
outputs: | ||
ci-image-version-linux: | ||
description: The ci image version for linux build | ||
value: ${{ jobs.Get-CI-Image-Tag.outputs.output-ci-image-version-linux }} | ||
|
||
jobs: | ||
Get-CI-Image-Tag: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
output-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
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
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