diff --git a/Makefile b/Makefile index f2951c9..1dd7958 100644 --- a/Makefile +++ b/Makefile @@ -64,3 +64,4 @@ $(GINKGO): test-all: $(GINKGO) $(GINKGO) -r --procs=1 --output-dir=/tmp/artifacts/test-results/service-tests --compilers=1 --randomize-all --randomize-suites --fail-on-pending --keep-going --timeout=5m --race --trace --json-report=report.json .PHONY: test-all + diff --git a/deploy/fake-gpu-operator/Chart.yaml b/deploy/fake-gpu-operator/Chart.yaml index e9bb0ef..751790c 100644 --- a/deploy/fake-gpu-operator/Chart.yaml +++ b/deploy/fake-gpu-operator/Chart.yaml @@ -15,10 +15,10 @@ type: application # 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. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: CHART_VERSION +version: 0.0.1 # Replaced during CD # 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 # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: CHART_VERSION +appVersion: 0.0.1 # Replaced during CD diff --git a/script/uploadChart.sh b/script/uploadChart.sh index b964569..13838f2 100755 --- a/script/uploadChart.sh +++ b/script/uploadChart.sh @@ -47,11 +47,10 @@ upload() { echo "[ERROR] Exiting because unable to copy index locally. Not safe to proceed." exit 1 fi - sed -i "s/"CHART_VERSION"/$CHART_VERSION/g" Chart.yaml helm repo add ingress-nginx "https://kubernetes.github.io/ingress-nginx" helm repo update helm dep update . - helm package . -n runai --destination "$sync_dir" + helm package . -n runai --destination "$sync_dir" --version "$CHART_VERSION" --app-version "$CHART_VERSION" if helm repo index --url "$REPO_URL" --merge "$index_dir/index.yaml" "$sync_dir"; then # Move updated index.yaml to sync folder so we don't push the old one again mv -f "$sync_dir/index.yaml" "$index_dir/index.yaml"