Skip to content

Commit

Permalink
Add version and type entry for docker images retrieval (opensearch-pr…
Browse files Browse the repository at this point in the history
…oject#4137)

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon authored Oct 17, 2023
1 parent dbfc699 commit 000c924
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/get-ci-image-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ on:
required: false
type: string
default: 'main'
version:
required: false
type: string
type:
required: false
type: string
default: 'build'
outputs:
ci-image-version-linux:
description: The ci image version for linux build
Expand All @@ -40,6 +47,7 @@ jobs:
run: |
PRODUCT=${{ inputs.product }}
PLATFORM=${{ inputs.platform }}
TYPE=${{ inputs.type }}
if [[ -z "$PLATFORM" ]]; then
if [[ "$PRODUCT" = "opensearch" ]]; then
PLATFORM="centos7" # Temp measure before centos7 deprecation on opensearch for k-NN
Expand All @@ -49,6 +57,6 @@ jobs:
fi
crane version
echo $PRODUCT $PLATFORM
CI_IMAGE_VERSION=`opensearch-build/docker/ci/get-ci-images.sh -p $PLATFORM -u $PRODUCT -t build | head -1`
CI_IMAGE_VERSION=`opensearch-build/docker/ci/get-ci-images.sh -p $PLATFORM -u $PRODUCT -t $TYPE | head -1`
echo $CI_IMAGE_VERSION
echo "ci-image-version-linux=$CI_IMAGE_VERSION" >> $GITHUB_OUTPUT

0 comments on commit 000c924

Please sign in to comment.