Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Single version Variable for both charts and docker images (#36)
Browse files Browse the repository at this point in the history
* use a single version through out

Signed-off-by: Tarun Pothulapati <[email protected]>

* remove unnecessary rm

Signed-off-by: Tarun Pothulapati <[email protected]>
  • Loading branch information
Pothulapati authored and grampelberg committed Aug 23, 2019
1 parent f2ab00e commit 46754df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ ifndef CIRCLE_TAG
endif
cp -R chart tmp/smi-metrics
sed -i.bak 's/CHART_VERSION/${VERSION}/g' tmp/smi-metrics/Chart.yaml
for fname in $$(grep -rnl '$*' tmp/smi-metrics); do \
sed -i.bak 's/VERSION/${CIRCLE_TAG}/g' $$fname; \
done
helm package tmp/smi-metrics -d tmp --save=false
rm -rf tmp/smi-metrics/

Expand Down
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: "0.1"
appVersion: CHART_VERSION
description: Provider for metrics.smi-spec.io
name: smi-metrics
version: CHART_VERSION
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
replicaCount: 1

image:
name: thomasr/smi-metrics:v1alpha1-0.1
name: deislabs/smi-metrics:VERSION
pullPolicy: IfNotPresent

config:
Expand Down

0 comments on commit 46754df

Please sign in to comment.