-
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.
Ensure Github workflow runs on docker image used by Production Distri…
…bution Build Signed-off-by: Peter Zhu <[email protected]>
- Loading branch information
1 parent
6f29716
commit 9a5dea2
Showing
6 changed files
with
154 additions
and
46 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