opensearch-project / asynchronous-search

:arrow_forward: Run queries in the background and retrieve partial results along the way
https://opensearch.org/docs/latest/search-plugins/async/index/
Apache License 2.0
29 stars 49 forks source link

Fix ci version parsing script #662

Closed finnegancarroll closed 3 weeks ago

finnegancarroll commented 3 weeks ago

Description

This build.yml script is slightly off due to the extra '-' in "asynchronous-search". Current output:

plugin version plugin_version qualifier docker_version
(opensearch-asynchronous-search-3.0.0.0-SNAPSHOT.zip) (search) (search) (-3) (search-3)
/home/runner/work/asynchronous-search/asynchronous-search
-rw-r--r-- 1 runner docker 980985 Nov  4 20:14 ./opensearch-asynchronous-search-3.0.0.0-SNAPSHOT.zip
Error response from daemon: manifest for opensearchstaging/opensearch:search-3 not found: manifest unknown: manifest unknown

Off by one error fixed:

plugin=opensearch-asynchronous-search-3.0.0.0-SNAPSHOT.zip
version=`echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-3`
plugin_version=`echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-4`
qualifier=`echo $plugin|awk -F- '{print $5}'| cut -d. -f 1-1`
echo $version
3.0.0
echo $plugin_version
3.0.0.0
echo $qualifier
SNAPSHOT

Related Issues

N/A

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.