Fix to version comparison
This commit is contained in:
parent
d53f205e52
commit
bfcd757d3c
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -x
|
set -v
|
||||||
|
|
||||||
apk add git curl jq helm;
|
apk add git curl jq helm;
|
||||||
# Intentionally does not handle renames, which would begin with `R`.
|
# Intentionally does not handle renames, which would begin with `R`.
|
||||||
@ -19,7 +19,8 @@ do
|
|||||||
file_metadata=$(echo $output_location | rev | cut -d '/' -f 1 | cut -c 5- | rev);
|
file_metadata=$(echo $output_location | rev | cut -d '/' -f 1 | cut -c 5- | rev);
|
||||||
chart_name=$(echo $file_metadata | rev | cut -d '-' -f 2- | rev);
|
chart_name=$(echo $file_metadata | rev | cut -d '-' -f 2- | rev);
|
||||||
chart_version=$(echo $file_metadata | rev | cut -d '-' -f 1 | rev);
|
chart_version=$(echo $file_metadata | rev | cut -d '-' -f 1 | rev);
|
||||||
if [[ $(echo $current_versions | grep "$chart_name___$chart_version" | wc -l ) -eq 1 ]]; then
|
search_string="$chart_name""___""$chart_version";
|
||||||
|
if [[ $(echo $current_versions | grep grep "$search_string" | wc -l ) -eq 1 ]]; then
|
||||||
# I.e. if the current version in the repo is the same as what we're trying to push
|
# I.e. if the current version in the repo is the same as what we're trying to push
|
||||||
# TODO - should we check that we're pushing a _newer_ version?
|
# TODO - should we check that we're pushing a _newer_ version?
|
||||||
# TODO - does the API only show the current version, or all versions?
|
# TODO - does the API only show the current version, or all versions?
|
||||||
|
@ -15,7 +15,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.3
|
version: 0.1.4
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
@ -15,7 +15,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user