From 2bf13af2b906f54f75b9309a7f3a9a274fbb1719 Mon Sep 17 00:00:00 2001 From: Kent Rancourt Date: Tue, 26 Nov 2019 12:13:46 -0500 Subject: [PATCH] improve how chart publishing works (#61) --- scripts/publish-rc-chart.sh | 4 +--- scripts/publish-release-chart.sh | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/publish-rc-chart.sh b/scripts/publish-rc-chart.sh index 2a10546d..48572745 100755 --- a/scripts/publish-rc-chart.sh +++ b/scripts/publish-rc-chart.sh @@ -13,12 +13,10 @@ cp -r -L chart/osiris /tmp/osiris-edge cd /tmp/osiris-edge sed -i "s/^name:.*/name: osiris-edge/g" Chart.yaml -sed -i "s/^version:.*/version: 0.0.1-$DATE-$GIT_VERSION/g" Chart.yaml -sed -i "s/^appVersion:.*/appVersion: $GIT_VERSION/g" Chart.yaml sed -i "s/^ tag:.*/ tag: $GIT_VERSION/g" values.yaml sed -i "s/^ pullPolicy:.*/ pullPolicy: IfNotPresent/g" values.yaml helm dep build . -helm package . +helm package --version 0.0.1-$DATE-$GIT_VERSION --app-version $GIT_VERSION . az acr helm push -n osiris osiris-edge-0.0.1-$DATE-$GIT_VERSION.tgz diff --git a/scripts/publish-release-chart.sh b/scripts/publish-release-chart.sh index a45f9af3..9c6cde76 100755 --- a/scripts/publish-release-chart.sh +++ b/scripts/publish-release-chart.sh @@ -13,12 +13,10 @@ rm -rf /tmp/osiris cp -r -L chart/osiris /tmp cd /tmp/osiris -sed -i "s/^version:.*/version: $SIMPLE_REL_VERSION/g" Chart.yaml -sed -i "s/^appVersion:.*/appVersion: $SIMPLE_REL_VERSION/g" Chart.yaml sed -i "s/^ tag:.*/ tag: $REL_VERSION/g" values.yaml sed -i "s/^ pullPolicy:.*/ pullPolicy: IfNotPresent/g" values.yaml helm dep build . -helm package . +helm package --version $SIMPLE_REL_VERSION --app-version $SIMPLE_REL_VERSION . az acr helm push -n osiris osiris-$SIMPLE_REL_VERSION.tgz