Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
test ci docker
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhuamazon committed Aug 26, 2020
1 parent 38d82cb commit 60dfaf3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions elasticsearch/docker/templates/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ RUN java -version
# Compile the C-library for kNN
USER 1000
RUN set -ex; \
pwd \
\
export KNN_VERSION=`.github/scripts/plugin_tag.sh opendistro-for-elasticsearch/k-NN $(echo {{version_tag}} | sed -E "s/.[0-9]+$//g")` \

export KNN_VERSION=`git ls-remote --tags "https://github.com/opendistro-for-elasticsearch/k-NN" v* | grep $(echo {{version_tag}} | sed -E "s/.[0-9]+$//g") | grep -oh "v[0-9.]*" | sort | tail -n 1` \
\
&& git ls-remote --tags https://github.com/opendistro-for-elasticsearch/k-NN.git v* \
\
Expand Down

0 comments on commit 60dfaf3

Please sign in to comment.