From df5dc79d9cf6338e1c05b2513a98777043cf5400 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 17 Oct 2023 21:37:34 +0000 Subject: [PATCH] Add version and type entry for docker images retrieval Signed-off-by: Peter Zhu --- .github/workflows/get-ci-image-tag.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/get-ci-image-tag.yml b/.github/workflows/get-ci-image-tag.yml index 2f27f019de..960e716bd0 100644 --- a/.github/workflows/get-ci-image-tag.yml +++ b/.github/workflows/get-ci-image-tag.yml @@ -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 @@ -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 @@ -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